12

I'm trying to make my biblatex references match this Vancouver style guide. After some tweaking, my biblatex references are almost exactly how I want them, with one exception. The word and is inserted between the last and second last authors.

How can I remove the word 'and' between the last and second last authors?

Here is a MWE:

\documentclass{article}

% nejm style gets us close.
\usepackage[style=nejm, terseinits=true]{bib latex}

% This bit makes sure the last names come before the initials.
\DeclareNameAlias{default}{last-first}
\renewcommand*{\revsdnamepunct}{}

% This puts the volume number in parentheses.
\renewbibmacro*{volume+number+eid}{%
    \printfield{volume}%
    \printfield{number}%
    \setunit{\addcomma\space}%
    \printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

\begin{filecontents}{references.bib}
    @article{kenkre_simple_1997,
      title = {Simple Solutions of the {{Torrey}}–{{Bloch}} Equations in the {{NMR}} Study of Molecular Diffusion},
      volume = {128},
      url = {http://www.sciencedirect.com/science/article/pii/S1090780797912167},
      number = {1},
      journaltitle = {J. Magn. Reson.},
      author = {Kenkre, V. M. and Fukushima, Eiichi and Sheltraw, D.},
      urldate = {2017-02-07},
      date = {1997-06},
      pages = {62--69},
}

\end{filecontents}
\addbibresource{references.bib}

\begin{document}
    Here is a reference \parencite{kenkre_simple_1997}.
    \printbibliography
\end{document}

reference-example

1 Answer 1

13

You can redefine \finalnamedelim, but note that it is language dependent. So you have to use \DeclareBibliographyExtras:

\documentclass{article}

% nejm style gets us close.
\usepackage[style=nejm, terseinits=true]{biblatex}

% This bit makes sure the last names come before the initials.
\DeclareNameAlias{default}{last-first}
\renewcommand*{\revsdnamepunct}{}

% This puts the volume number in parentheses.
\renewbibmacro*{volume+number+eid}{%
    \printfield{volume}%
    \printfield{number}%
    \setunit{\addcomma\space}%
    \printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

\addbibresource{biblatex-examples.bib}
\DefineBibliographyExtras{english}{%
  \renewcommand*{\finalnamedelim}{\addcomma\addspace}%
}

\begin{document}
    Here is a reference \parencite{yoon}.
    \printbibliography
\end{document}

enter image description here

5
  • 1
    Thanks! How does one discover tricks like that?
    – daviewales
    Commented May 27, 2017 at 7:42
  • @daviewales In this case is was simply reading/searching in the biblatex manual. Commented May 27, 2017 at 10:28
  • 1
    I've found all the puzzle pieces in the biblatex manual now using a text search, but I doubt I would have ever pieced them together myself!
    – daviewales
    Commented May 27, 2017 at 10:33
  • @daviewales I do not say, that you should have find it. I only tell you, what I've done. But I already know, that biblatex has configuration features for almost everything. And I have some experience in using LaTeX (but not a lot in using biblatex). Commented May 27, 2017 at 10:48
  • 3
    I don't think it is \finalnamedelim that is language specific (expect for spanish.lbx). \finalandcomma which is used in \finalnamedelim is language specific. In your MWE the \DefineBibliographyExtras{english} is not needed.
    – moewe
    Commented May 27, 2017 at 12:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .