在参考文献中添加超链接很酷,如下:
我想知道如何在bibtex中添加蓝色框。例如,下面的文章的链接是“ee”。
@inproceedings{DBLP:conf/osdi/DeanG04,
author = {Jeffrey Dean and
Sanjay Ghemawat},
title = {MapReduce: Simplified Data Processing on Large Clusters},
booktitle = {OSDI},
year = {2004},
ee = {http://www.usenix.org/events/osdi04/tech/dean.html},
crossref = {DBLP:conf/osdi/2004},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
答案1
正在加载hyperref
包装和使用
url = {http://www.usenix.org/events/osdi04/tech/dean.html},
url
在您的参考书目中提供可点击的内容。
或者你可以使用
note = {\href{http://www.usenix.org/events/osdi04/tech/dean.html}{my text for the link which can break across lines}},
这会给出一个与链接文本不同的链接。我同意@Mico 的观点——出于各种不同的原因,这通常可能不是一个好主意。
完成 MWE
% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
\begin{filecontents}{mybib.bib}
@inproceedings{dblp,
author = {Jeffrey Dean and
Sanjay Ghemawat},
title = {MapReduce: Simplified Data Processing on Large Clusters},
booktitle = {OSDI},
year = {2004},
note = {\href{http://www.usenix.org/events/osdi04/tech/dean.html}{my text for the link which can break across lines}},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
\end{filecontents}
\documentclass{article}
\usepackage[backend=bibtex]{biblatex} % bibliography
\usepackage{hyperref}
% bibliography
\bibliography{mybib}
\begin{document}
hello world \cite{dblp}
\printbibliography
\end{document}
答案2
感谢@cmhughe的代码,我重写如下:
@inproceedings{DBLP:conf/osdi/DeanG04,
author = {Jeffrey Dean and
Sanjay Ghemawat},
title = {\href{http://www.usenix.org/events/osdi04/tech/dean.html}{MapReduce: Simplified Data Processing on Large Clusters}},
booktitle = {OSDI},
year = {2004},
ee = {http://www.usenix.org/events/osdi04/tech/dean.html},
crossref = {DBLP:conf/osdi/2004},
bibsource = {DBLP, http://dblp.uni-trier.de}
这样就能达到超链接的效果了。