答案1
您可以.bst
按照建議修改該文件以添加 DOI 鏈接這個帖子。
- 下載
iopart-num.bst
並重命名它iopart-num-mod.bst
。 - 將以下函數新增至
iopart-num-mod.bst
:FUNCTION {doilink} { duplicate$ empty$ { pop$ "" } { doi empty$ { skip$ } { "\href{http://dx.doi.org/" doi * "}{" * swap$ * "}" * } if$ } if$ }
- 在您希望成為超連結的部分之後呼叫該函數。例如在
article
之後的函數中format.vol.num.pages
:
這將建立捲和頁面的超連結。... format.vol.num.pages doilink output ...
- 在 中新增
doi
字段ENTRY
。
這是 MWE 修改後的參考書目風格與cite
和hyperref
包的結合:
\documentclass[12pt]{article}
\usepackage{filecontents}
\begin{filecontents}{bib_file.bib}
@article{Rueda_2014,
author = {Rueda, A and others},
title = {Title},
journal = {Optica},
volume = {3},
pages = {597},
year = {2014},
doi = {123456/798}
}
@article{Rueda_2015,
author = {Rueda, A and others},
title = {Title},
journal = {Optica},
volume = {3},
pages = {597},
year = {2015},
doi = {123456/798}
}
@article{Rueda_2016,
author = {Rueda, A and others},
title = {Title},
journal = {Optica},
volume = {3},
pages = {597},
year = {2016},
doi = {123456/798}
}
\end{filecontents}
\usepackage{cite}
\usepackage[colorlinks, citecolor = blue, urlcolor = blue]{hyperref}
\bibliographystyle{iopart-num-mod}
\begin{document}
\cite{Rueda_2014, Rueda_2015, Rueda_2016}
\bibliography{bib_file}
\end{document}