我正在使用《现代物理学评论》(rmp
)样式撰写报告。默认情况下,它使用作者/年份引用。我想强制 revtex 使用数字引用。
添加\bibliographystyle{aipnum4-1}
文档中所述(或包含numerical
在documentclass
声明中)似乎没有帮助。
这是一个存在此问题的示例 tex 文件。
\documentclass[rmp]{revtex4-1}
\usepackage{url}
\usepackage{hyperref}
%\bibliographystyle{apsrev4-1}
\bibliographystyle{aipnum4-1}
\begin{document}
More words Citation: \cite{cite2}
Other citation:\cite{cite1}
%include bibliography
\bibliography{bibstuff}
\end{document}
使用 bibstuff.bib:
@article{cite1,
Author = {John Doe and James Doe},
Issue = {71},
Journal = {Phys. Rev. B},
Month = {Mar},
Numpages = {0},
Pages = {5321},
Publisher = {American Physical Society},
Title = {SCIENCE!},
Volume = {32},
Year = {1994}}
@article{cite2,
Author = {Jane Name and Other Person},
Issue = {71},
Journal = {Phys. Rev. E},
Month = {Mar},
Numpages = {0},
Pages = {5321},
Publisher = {American Physical Society},
Title = {SCIENCE!},
Volume = {32},
Year = {2078}}
}
文档链接: http://www.physics.csbsju.edu/370/papers/Journal_Style_Manuals/auguide4-1.pdf
答案1
给出适当的\setcitestyle
命令:
\begin{filecontents*}{\jobname.bib}
@article{cite1,
Author = {John Doe and James Doe},
Issue = {71},
Journal = {Phys. Rev. B},
Month = {Mar},
Numpages = {0},
Pages = {5321},
Publisher = {American Physical Society},
Title = {SCIENCE!},
Volume = {32},
Year = {1994}}
@article{cite2,
Author = {Jane Name and Other Person},
Issue = {71},
Journal = {Phys. Rev. E},
Month = {Mar},
Numpages = {0},
Pages = {5321},
Publisher = {American Physical Society},
Title = {SCIENCE!},
Volume = {32},
Year = {2078}}
}
\end{filecontents*}
\documentclass[rmp]{revtex4-1}
\usepackage{hyperref}
%\bibliographystyle{apsrev4-1}
\bibliographystyle{aipnum4-1}
\setcitestyle{numbers,square}
\begin{document}
More words Citation: \cite{cite2}
Other citation: \cite{cite1}
%include bibliography
\bibliography{\jobname}
\end{document}
我filecontents
仅用来使示例自成一体;任何bib
文件都可以。