
Я использую 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
показывает только одного автора и et al., когда год отличается, но добавляет a,b,c и т. д., когда авторы и год совпадают.
Итак, весь bibtex include выглядит так:
\usepackage[backend=biber,style=authoryear,mincitenames=1,maxcitenames=2,giveninits=true,uniquename=mininit,uniquelist=minyear]{biblatex}
Возможно, это будет полезно другим, столкнувшимся с подобной проблемой.