mgttlinger / biblatex-lncs

BiBLaTeX style for Springer Lecture Notes in Computer Science
LaTeX Project Public License v1.3c
17 stars 3 forks source link

Author and editor lists should not include an "and" before the last name #7

Closed tvercaut closed 1 year ago

tvercaut commented 1 year ago

Currently, biblatex-lncs generates lists of names that read like:

Author1, A., Author2, B., and Author3, C.

This is in contrast to splncs04.bst which generates the list without the use of the final "and":

Author1, A., Author2, B., Author3, C.

As discussed here, a workaround is to add the following redefinitions after \usepackage[...,style=lncs]{biblatex}:

\DeclareNameFormat{author}{%
  \ifdefvoid{\namepartprefix}{}{\namepartprefix\space}\namepartfamily, \namepartgiveni%
  \ifthenelse{\value{listcount}<\value{liststop}}
    {\addcomma\space}%
    {}%
  \usebibmacro{name:andothers}%
}
\DeclareNameFormat{editor}{%
  \ifdefvoid{\namepartprefix}{}{\namepartprefix\space}\namepartfamily, \namepartgiveni%
  \ifthenelse{\value{listcount}<\value{liststop}}
    {\addcomma\space}%
    {\space\ifthenelse{\value{listcount}>1}
      {(\bibstring{editors})}
      {(\bibstring{editor})}}%
}

It would be good to fix this here and not have to rely on the workaround.