我使用 BibLaTeX 来管理引文。但是,三位或更多作者的内联引文有时会使用多位作者,尽管这些参考文献的年份不同,因此可以区分。
我给你一个 MWE 来清楚地说明我的问题:
\documentclass{report}
\usepackage{filecontents}
\usepackage[backend=biber,style=authoryear,mincitenames=1,maxcitenames=2,giveninits=true,uniquename=mininit]{biblatex}
\begin{filecontents}{mybib.bib}
@article{Test2018,
author = {Human, B and Person, P and Somebody, B},
journal = {Journal of Journals},
number = {1},
pages = {1--8},
title = {qwerty},
volume = {1},
year = {2018}
}
@article{Test2019,
author = {Human, B and Random, R and Person, P},
journal = {Journal of Papers},
number = {1},
pages = {1--8},
title = {asdasd},
volume = {1},
year = {2019}
}
@article{Two2019,
author = {First, Stephan and Second, Robert},
journal = {Journal of Research},
number = {1},
pages = {3--5},
title = {A Title},
volume = {1},
year = {2019}
}
@article{Three2019,
author = {Uno, Alpha and Second, Beta and Third, Gamma},
journal = {Journal of Stuff},
number = {1},
pages = {3--5},
title = {Another Title},
volume = {1},
year = {2019}
}
\end{filecontents}
\addbibresource{mybib.bib}
\begin{document}
This is a text with \autocite{Test2018} and \autocite{Test2019}.
This is a two authors citation \autocite{Two2019}.
This is an unrelated citation with three authors \autocite{Three2019}.
\printbibliography
\end{document}
预期输出:
This is a text with (Human et al. 2018) and (Human et al. 2019).
This is a two authors citation (First and Second 2019).
This is an unrelated citation with three authors (Uno et al. 2019).
实际产量:
This is a text with (Human, Person, et al. 2018) and (Human, Random, et al. 2019).
This is a two authors citation (First and Second 2019).
This is an unrelated citation with three authors (Uno et al. 2019).
我该如何配置 BibLaTeX 才能得到预期的输出?我尝试了uniquename
等的几种变体,但没有成功。
提前谢谢了!
答案1
我认为我自己通过反复试验找到了解决方案。当年份不同时,uniquename=mininit
和的组合uniquelist=minyear
只会显示一位作者和等人,但当作者和年份相同时会添加 a、b、c 等。
因此整个 bibtex 包括以下内容:
\usepackage[backend=biber,style=authoryear,mincitenames=1,maxcitenames=2,giveninits=true,uniquename=mininit,uniquelist=minyear]{biblatex}
也许这对其他遇到类似麻烦的人有用。