我正在使用revtex-4-2
它来撰写我的手稿,并希望在我的参考书目中包含可点击链接 (doi)。如果我使用该doi
包,即使编译看起来没问题,我也会收到错误 ( LaTeX Error: Command \doi already defined.
)。我该如何解决这个问题?这是我的 MWE(改编自 Overleaf 模板):
\documentclass[prb,floatfix,reprint]{revtex4-2}
\usepackage{doi}
\begin{document}
\preprint{APS/123-QED}
\title{paper title}
\author{Ann Author}
\altaffiliation[Also at ]{Physics Department, XYZ University.}
\author{Second Author}
\email{[email protected]}
\affiliation{Authors' institution and/or address}
\collaboration{MUSO Collaboration}
\author{Charlie Author}
\homepage{http://www.Second.institution.edu/~Charlie.Author}
\affiliation{Second institution and/or address}
\affiliation{Third institution, the second for Charlie Author}
\author{Delta Author}
\affiliation{Authors' institution and/or address}
\collaboration{CLEO Collaboration}
\begin{abstract}
This is my abstract. This is a useful reference \cite{mylabel}.
\end{abstract}
\keywords{Suggested keywords}
\maketitle
\bibliography{myref}
\end{document}
和 bibtex 文件
@PREAMBLE{
"\providecommand{\noopsort}[1]{}"
# "\providecommand{\singleletter}[1]{#1}%"
}
@article{mylabel,
author = "J. Pleschiutschnig and O. Blaschko and W. Reichardt",
title = "Lattice dynamics of lutetium",
journal = "Phys. Rev. B",
volume = "41",
pages = "975",
year = "1990",
doi = "10.1103/PhysRevB.41.975",
}