Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BibTeX - no comma before "et al."

660 views
Skip to first unread message

boguS

unread,
Jan 15, 2009, 10:27:32 AM1/15/09
to
Hello all!
I would like to have all the authors' names in the database.
I use <etal-xc> { No comma before `et al'option} in makebst but finaly
comma isn't supress from my references list. The number of authors is
3 (max = min). This is format.names functioin from my .bst file.

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.

Joseph Wright

unread,
Jan 15, 2009, 2:34:11 PM1/15/09
to
boguS wrote:
> Hello all!
> I would like to have all the authors' names in the database.
> I use <etal-xc> { No comma before `et al'option} in makebst but finaly
> comma isn't supress from my references list. The number of authors is
> 3 (max = min).


Do you want a comma before the last author name if there is not an "et al."?
--
Joseph Wright

boguS

unread,
Jan 16, 2009, 3:29:21 AM1/16/09
to
On 15 Ian, 21:34, Joseph Wright <joseph.wri...@morningstar2.co.uk>
wrote:

Thanks for your replay, Joseph.
I don't want a comma after the last author name, if there is an "et
al".

Joseph Wright

unread,
Jan 16, 2009, 3:55:25 AM1/16/09
to
Changing:

"," *
t "others" =
{
" " * bbl.etal emphasize *
}
{ " " * t * }

to

t "others" =
{
" " * bbl.etal emphasize *
}

{ ", " * t * }

should do it.
--
Joseph Wright

boguS

unread,
Jan 16, 2009, 5:46:20 AM1/16/09
to
On 16 Ian, 10:55, Joseph Wright <joseph.wri...@morningstar2.co.uk>
wrote:

Thanks Joseph. You saved me.....It's works perfectly.

0 new messages