我正在尝试修改这部分.bst
文件:
FUNCTION {format.names}
{ 's :=
#0 'numtrunc :=
#1 'nameptr :=
s num.names$ 'numnames :=
numnames 'namesleft :=
numnames #1 >
{ #1 'numtrunc := }
{}
if$
{ namesleft #0 > }
{ s nameptr
"{vv~}{ll}{, jj}{, f.}" format.name$
't :=
nameptr #1 >
{
nameptr #1 - numtrunc =
{
#1 'namesleft :=
"others" 't :=
}
{}
if$
namesleft #1 >
{ ", " * t * }
{
numnames #1 >
{ "," * }
'skip$
if$
s nameptr "{ll}" format.name$ duplicate$ "others" =
{ 't := }
{ pop$ }
if$
t "others" =
{
" {et~al.}" *
}
{ " \& " * t * }
if$
}
if$
}
't
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
while$
}
我不熟悉这种语言。我只想打印一个名字的参考书目,所以所有内容都应该写成:
author1 et al,
author2 et al,
etc.