Skip to content
Discussion options

You must be logged in to vote

可以修改 format.lab.namescitation.and

FUNCTION {format.lab.names}
{ 's :=
  #1 'nameptr :=
  s num.names$ 'numnames :=
  ""
  numnames 'namesleft :=
  numnames #2 =
    {
      % 如果恰好两位作者,输出 A and B
      s #1 format.lab.name * " " * citation.and * " " * s #2 format.lab.name *
    }
    {
      numnames #3 <
        {
          % 如果少于三位作者(即只有一位),直接输出唯一作者
          s #1 format.lab.name *
        }
        {
          % 三位及以上作者,输出 A et al.
          s #1 format.lab.name * " " * citation.et.al *
        }
      if$
    }
  if$
}

FUNCTION {citation.and}
{ terms.in.macro
    { "{\biband}" }
    {
      entry.lang lang.zh =
        { "和" }
        { "and" }
      if$
    }
  if$
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sulisszh
Comment options

Comment options

You must be logged in to vote
1 reply
@sulisszh
Comment options

Answer selected by stone-zeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants