变体这个问题这增加了解决方案与包一起工作的额外要求doi
。
我如何强制 bibtex 将下面的单词“DOI”格式化为大写?
\documentclass{article}
\usepackage{natbib}
\usepackage{doi} % hyperlink URLs
\begin{filecontents*}{\jobname.bib}
@article{milner92,
author = {Robin Milner and Joachim Parrow and David Walker},
title = {A Calculus of Mobile Processes, {I} and {II}},
journal = {Inf. Comput.},
volume = {100},
number = {1},
pages = {1--77},
year = {1992},
doi = {10.1016/0890-5401(92)90009-5},
}
\end{filecontents*}
\begin{document}
\cite{milner92}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
答案1
正如文档所述:
可以通过重新定义 \doitext 命令来控制 doi 的格式,
\documentclass{article}
\usepackage{natbib}
\usepackage{doi} % hyperlink URLs
\renewcommand{\doitext}{DOI:~}
\begin{filecontents*}{\jobname.bib}
@article{milner92,
author = {Robin Milner and Joachim Parrow and David Walker},
title = {A Calculus of Mobile Processes, {I} and {II}},
journal = {Inf. Comput.},
volume = {100},
number = {1},
pages = {1--77},
year = {1992},
doi = {10.1016/0890-5401(92)90009-5},
}
\end{filecontents*}
\begin{document}
\cite{milner92}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}