当参考文献有 2 位作者时,我希望引用显示为:
Sutherland & Varnam
此外,当打印参考书目时(在手稿末尾),我不想看到任何作者and
或&
最后一位作者之前的作品 - 只想看到所有作者的列表。
答案1
结合这一点回答步调一致,并且回答您可以添加以下几行来and
全局&
更改
\renewcommand*{\finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\&\space}
并在参考书目中and
更改以下几行,
\AtBeginBibliography{%
\renewcommand*{\finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\addcomma\space}%
}
梅威瑟:
\documentclass{article}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Sutherland and Varnam},
year = {2001},
title = {Title},
}
\end{filecontents}
\usepackage[style=authoryear,backend=biber]{biblatex}
\renewcommand*{\finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\&\space}
\AtBeginBibliography{%
\renewcommand*{\finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\addcomma\space}%
}
\addbibresource{\jobname.bib}
\begin{document}
Here we cite \cite{A01}.
\printbibliography
\end{document}
输出: