daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INTEGERS { nameptr namesleft numnames }
  2.  
  3. FUNCTION {format.names}
  4. { 's :=
  5.   'f :=
  6.   #1 'nameptr :=
  7.   s num.names$ 'numnames :=
  8.   numnames 'namesleft :=
  9.     { namesleft #0 > }
  10.     { s nameptr f format.name$ 't :=
  11.       nameptr #1 >
  12.         { namesleft #1 >
  13.             { ", " * t * }
  14.             { t "others" =
  15.                 { " et~al." * }
  16.                 { ", " * t * }
  17.               if$
  18.             }
  19.           if$
  20.         }
  21.         't
  22.       if$
  23.       nameptr #1 + 'nameptr :=
  24.       namesleft #1 - 'namesleft :=
  25.     }
  26.   while$
  27. }
  28.  
  29. FUNCTION {format.authors}
  30. { author empty$
  31.     { "" }
  32.     { "{vv~}{ll}{, jj}{, f.}" author format.names }
  33.   if$
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top