是否可以abbrvnat.bst
从natbib
包中修改样式以便它自动doi
在生成的参考书目中强调数字?
答案1
abbrvnat
书目样式用于格式化字段\doi
的内容doi
。可以为 编写自定义定义\doi
。下面的示例还加载了用于下划线文本的ulem
定义\uline
。命令在某些情况下有效,但\underline
失败。
\documentclass{article}
\usepackage{natbib}
\usepackage[normalem]{ulem}% \uline
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Rutledge19082014,
author = {Rutledge, Robb B. and Skandali, Nikolina and Dayan, Peter and
Dolan, Raymond J.},
title = {A computational and neural model of momentary subjective well-being},
volume = {111},
number = {33},
pages = {12252--12257},
year = {2014},
doi = {10.1073/pnas.1407535111},
journal = {Proceedings of the National Academy of Sciences},
}
\end{filecontents}
\newcommand{\doi}[1]{doi: \uline{#1}}
\begin{document}
\bibliographystyle{abbrvnat}
\nocite{*}
\bibliography{\jobname}
\end{document}