![带有 apsrev bibliographystyle 的 moderncv 给出了不需要的作者括号](https://linux22.com/image/417162/%E5%B8%A6%E6%9C%89%20apsrev%20bibliographystyle%20%E7%9A%84%20moderncv%20%E7%BB%99%E5%87%BA%E4%BA%86%E4%B8%8D%E9%9C%80%E8%A6%81%E7%9A%84%E4%BD%9C%E8%80%85%E6%8B%AC%E5%8F%B7.png)
以下是我的问题的 MWE:
\documentclass[11pt,a4paper]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{black}
\usepackage[scale=0.75]{geometry}
\name{John}{Doe}
\begin{document}
\makecvtitle
\nocite{*}
\bibliographystyle{apsrev4-1}
\bibliography{mwe}
\end{document}
与引用的 .bib 文件
@article{MyArticle,
title = {A Fancy Title},
author = {Doe, John},
journal = {Prestigous Journal},
volume = {2},
issue = {3},
pages = {038952},
year = {2020},
month = {Jul},
}
参考文献开头的 [Doe(2020)] 在其他参考书目样式中不存在,我想将其删除。我该怎么做?
答案1
要摆脱完整的标签,只需在序言中添加以下几行(可能性 1):
\makeatletter
\renewcommand\@biblabel[1]{} % <========================== possibility 1
%\renewcommand\@biblabel[1]{\textbullet} % <============== possibility 2
\makeatother
如果你想要标签,例如文本项目符号来标记新 bib 条目的开始,你可以使用可能性 2,例如
\makeatletter
%\renewcommand\@biblabel[1]{} % <========================== possibility 1
\renewcommand\@biblabel[1]{\textbullet} % <============== possibility 2
\makeatother
使用以下MWE(用于filecontents
在可编译的mwe中添加bib文件)
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
author = {Goossens, Michel and Mittelbach, Frank and
Samarin, Alexander},
title = {The LaTeX Companion},
edition = {1},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
year = {1994},
}
@Book{adams,
title = {The Restaurant at the End of the Universe},
author = {Douglas Adams},
series = {The Hitchhiker's Guide to the Galaxy},
publisher = {Pan Macmillan},
year = {1980},
}
@article{feynman,
title = {Very High-Energy Collisions of Hadrons},
author = {Richard P. Feynman},
journal = {Phys. Rev. Lett.},
volume = {23},
issue = {24},
pages = {1415--1417},
year = {1969},
month = {Dec},
doi = {10.1103/PhysRevLett.23.1415},
url = {http://link.aps.org/doi/10.1103/PhysRevLett.23.1415},
publisher = {American Physical Society},
}
@article{MyArticle,
title = {A Fancy Title},
author = {Doe, John},
journal = {Prestigous Journal},
volume = {2},
issue = {3},
pages = {038952},
year = {2020},
month = {Jul},
}
\end{filecontents*}
\documentclass[11pt,a4paper]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{black}
\usepackage[scale=0.75]{geometry}
\name{John}{Doe}
\makeatletter
\renewcommand\@biblabel[1]{} % <========================== possibility 1
%\renewcommand\@biblabel[1]{\textbullet} % <============== possibility 2
\makeatother
\begin{document}
\makecvtitle
\nocite{*}
\bibliographystyle{apsrev4-1} %
\bibliography{\jobname}
\end{document}
你得到了最终的 pdf
采用可能性 2,你会得到以下结果 pdf: