的一個變體這個問題這增加了解決方案與套件一起使用的額外要求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
正如文檔所說:
doi的格式可以透過重新定義\doitext指令來控制,
\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}