在我的文件標題中,我將最大作者姓名設為 2:
\usepackage[style=authoryear-icomp, maxbibnames=9, maxcitenames=2, backend=biber]{biblatex}
現在,當我引用兩位作者的文本時,LaTeX 會給出以下資訊:
(作者_A/作者_B 2012:232)
當我有三位或更多作者時,LaTeX 會做到:
(作者_A/作者_B 等人,2012 年:232)
但如果有兩個以上的作者,我希望 LaTeX 只命名第一作者......就像這樣:
(作者_A 等人,2012 年:232)
關於如何實現這一目標有什麼建議嗎?
答案1
預設情況下biblatex
將要截斷姓名清單超過maxcitenames
一位作者加上「等人」。 ( mincitenames=1
)。但是,biblatex
將(也是預設)不是如果這樣做會導致引用鍵不明確,請截斷,我懷疑您的文件中就是這種情況。比較以下兩個範例的輸出:
\documentclass{article}
\usepackage[style=authoryear-icomp,maxbibnames=9,maxcitenames=2,backend=biber]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {Author, A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \autocite{ABC01}.
\printbibliography
\end{document}
\documentclass{article}
\usepackage[style=authoryear-icomp,maxbibnames=9,maxcitenames=2,backend=biber]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {Author, A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
@misc{ADE01,
author = {Author, A. and Duthor, D. and E},
year = {2001},
title = {And now for something completely different},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \autocite{ABC01}.
Some text \autocite{ADE01}.
\printbibliography
\end{document}
如果您在所有情況下都希望引文索引中只有一位作者,請使用選項uniquelist=false
。 (請注意,這可能會導致讀者得出錯誤的結論,即「作者等人」指的是同一作者團隊。)
\documentclass{article}
\usepackage[style=authoryear-icomp,maxbibnames=9,maxcitenames=2,uniquelist=false,
backend=biber]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {Author, A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
@misc{ADE01,
author = {Author, A. and Duthor, D. and E},
year = {2001},
title = {And now for something completely different},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \autocite{ABC01}.
Some text \autocite{ADE01}.
\printbibliography
\end{document}