禁用 natbib 中作者年份引用的压缩

禁用 natbib 中作者年份引用的压缩

我想禁用 中的作者年份引用压缩natbib。例如,以下源代码生成输出“[Miller,2001,2002]”:

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{test.bib}
@article{meyer2001,
  title = {foo},
  year = {2001},
  author = {K. Miller},
  journal = {Nature}
}
@article{meyer2002,
  title = {bar},
  year = {2002},
  author = {K. Miller},
  journal = {Science}
}
\end{filecontents}

\usepackage{natbib}

\begin{document}

\citep{meyer2001,meyer2002}.

\bibliographystyle{plainnat}
\bibliography{test}

\end{document}

但是,我希望输出“[Miller, 2001, Miller, 2002]”。我很乐意听到任何建议!

答案1

考虑切换到biblatex

\documentclass{article}

\usepackage[style=authoryear]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{meyer2001,
title = {foo},
year = {2001},
author = {K. Miller},
journal = {Nature},
}
@article{meyer2002,
title = {bar},
year = {2002},
author = {K. Miller},
journal = {Science},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\autocite{meyer2001,meyer2002}

\printbibliography

\end{document}

在此处输入图片描述

相关内容