![更改 modernCV 中用 \printbibliography 添加的出版物的参考书目样式](https://linux22.com/image/361475/%E6%9B%B4%E6%94%B9%20modernCV%20%E4%B8%AD%E7%94%A8%20%5Cprintbibliography%20%E6%B7%BB%E5%8A%A0%E7%9A%84%E5%87%BA%E7%89%88%E7%89%A9%E7%9A%84%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E6%A0%B7%E5%BC%8F%20.png)
我有一份使用 moderncv 制作的 CV 的以下 MWE,我需要在出版物部分显示所有作者。换句话说,我需要用 2-5 位作者替换 et al。
\documentclass{moderncv}
\usepackage[]{biblatex}
\usepackage[left=3cm, right=2cm]{geometry}
\moderncvstyle{classic}
\moderncvcolor{blue}
\addbibresource{Downey.bib}
% personal data
\firstname{John}
\familyname{Doe}
\begin{document}
\makecvtitle
\section{Education}
\cventry{start-end}{<Position Held>}{<Name of employer>}{<Place>}{<Country>}{<Description>} % arguments 3 to 6 are optional
\nocite{bib_key}
\printbibliography[title={Peer-Reviewed Journal articles}]
\end{document}
这是示例 bibtex 文件。
@Article{bib_key,
author = {\textbf{Author 1} and Author 2 and Author 3 and Author 4 and Author 5},
title = {Research paper},
journal = {Journal of science},
year = {2017},
volume = {26},
number = {6},
pages = {065008},
month = {may},
doi = {10.1088/1361-665x/aa6b66},
publisher = {{IOP} Publishing},
url = {https://doi.org/10.1088%2F1361-665x%2Faa6b66},
}
答案1
添加简单选项maxnames=99
至biblatex
:
\usepackage[maxnames=99]{biblatex} % <==================================
这意味着您的所有作者(最多 99 位)都将打印在您的参考书目中。
拥有完整的 MWE
\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{bib_key,
author = {\textbf{Author 1} and Author 2 and Author 3 and Author 4 and Author 5},
title = {Research paper},
journal = {Journal of science},
year = {2017},
volume = {26},
number = {6},
pages = {065008},
month = {may},
doi = {10.1088/1361-665x/aa6b66},
publisher = {{IOP} Publishing},
url = {https://doi.org/10.1088%2F1361-665x%2Faa6b66},
}
\end{filecontents}
\documentclass{moderncv}
\usepackage[maxnames=99]{biblatex} % <==================================
\addbibresource{\jobname.bib}
\usepackage[left=3cm, right=2cm]{geometry}
\moderncvstyle{classic}
\moderncvcolor{blue}
% personal data
\firstname{John}
\familyname{Doe}
\begin{document}
\makecvtitle
\section{Education}
\cventry{start-end}{<Position Held>}{<Name of employer>}{<Place>}{<Country>}{<Description>} % arguments 3 to 6 are optional
\nocite{bib_key}
\printbibliography[title={Peer-Reviewed Journal articles}]
\end{document}
你得到了想要的结果: