FUNCTION {format.names}
{ 'bibinfo :=
duplicate$ empty$ 'skip$ {
's :=
"" 't :=
#1 'nameptr :=
s num.names$ 'numnames :=
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr
"{vv~}{ll}{ jj}{ f{.}.}"
format.name$
bibinfo bibinfo.check
't :=
nameptr #1 >
{
nameptr #3
#1 + =
numnames #3
> and
{ "others" 't :=
#1 'namesleft := }
'skip$
if$
namesleft #1 >
{ ", " * t * }
{
s nameptr "{ll}" format.name$ duplicate$ "others" =
{ 't := }
{ pop$ }
if$
"," *
t "others" =
{
" " * bbl.etal emphasize *
}
{ " " * t * }
if$
}
if$
}
't
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
while$
} if$
}
What is wrong?
Thanks for any help.
Do you want a comma before the last author name if there is not an "et al."?
--
Joseph Wright
Thanks for your replay, Joseph.
I don't want a comma after the last author name, if there is an "et
al".
"," *
t "others" =
{
" " * bbl.etal emphasize *
}
{ " " * t * }
to
t "others" =
{
" " * bbl.etal emphasize *
}
{ ", " * t * }
should do it.
--
Joseph Wright
Thanks Joseph. You saved me.....It's works perfectly.