带有 apsrev bibliographystyle 的 moderncv 给出了不需要的作者括号

带有 apsrev bibliographystyle 的 moderncv 给出了不需要的作者括号

以下是我的问题的 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

生成的 pdf 没有标签

采用可能性 2,你会得到以下结果 pdf:

生成的 PDF 带有文本项目符号

相关内容