我正在尝试使用类、包和参考书目样式来获取URL 。该hyperref
论文的特征为在文件中,并且由于 URL 条目未在 中使用,因此我将其插入到条目中。这一切都很好,但我希望能够单击 URL 并引导到互联网上的位置。这该怎么做?此外,是否可以将丑陋的 URL 隐藏在可点击的超链接后面,例如期刊缩写后面的 DOI 和论文页面后面的 ADS(天体物理数据系统)?scrartcl
Bibtex
natbib
authordate1
@article
.bib
@article
note
.bib 条目:
% This file was created with JabRef 2.10.
% Encoding: UTF8
@Article{Schwamb2010,
Title = {Properties of the Distant Kuiper Belt: Results from the Palomar Distant Solar System Survey},
Author = {(Megan E.) Schwamb and (Michael E.) Brown and (David L.) Rabinowitz and Darin Ragozzine},
Journal = {The Astrophysical Journal},
Year = {2010},
Month = {September},
Note = {{\url{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}}},
Number = {2},
Pages = {1691},
Volume = {720},
Doi = {http://dx.doi.org/10.1088/0004-637X/720/2/1691},
Timestamp = {2014.09.21},
Url = {http://m.iopscience.iop.org/0004-637X/720/2/1691/pdf/0004-637X_720_2_1691.pdf}
}
答案1
你问:
一切正常,但我希望能够单击 URL 并引导到互联网上的位置。如何做到这一点?
看起来您在字段内容周围使用了太多的花括号note
。而不是写
Note = {{\url{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}}},
你应该写
Note = {\url{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}},
顺便问一下,为什么要用圆括号括起前三位作者的名字和中间名首字母,而不用圆括号括起第四位作者的名字呢?
\documentclass{scrartcl}
\usepackage{natbib,url,hyperref}
\hypersetup{colorlinks,allcolors=blue}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Article{Schwamb2010,
Title = {Properties of the Distant Kuiper Belt: Results from the Palomar Distant Solar System Survey},
Author = {(Megan E.) Schwamb and (Michael E.) Brown and (David L.) Rabinowitz and Darin Ragozzine},
Journal = {The Astrophysical Journal},
Year = {2010},
Month = {September},
Note = {\url{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}},
Number = {2},
Pages = {1691},
Volume = {720},
Doi = {http://dx.doi.org/10.1088/0004-637X/720/2/1691},
Timestamp = {2014.09.21},
Url = {http://m.iopscience.iop.org/0004-637X/720/2/1691/pdf/0004-637X_720_2_1691.pdf}
}
\end{filecontents*}
\begin{document}
\nocite{*}
\bibliographystyle{authordate1}
\bibliography{\jobname}
\end{document}
您还问过:
此外,是否可以将不好看的 URL 隐藏在可点击的超链接后面,例如期刊缩写后面的 DOI 和论文页面后面的 ADS(天体物理数据系统)?
也可以这样做(虽然我不确定这样做是否可取……)。只需将journal
和pages
字段的原始内容替换为{\href{...}{original content}
即可。例如,
Journal = {\href{http://dx.doi.org/10.1088/0004-637X/720/2/1691}{The Astrophysical Journal}},
和
Pages = {\href{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}{1691}},
这样做将产生以下输出:
\documentclass{scrartcl}
\usepackage{natbib,url,hyperref}
\hypersetup{colorlinks,allcolors=blue}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Article{Schwamb2010,
Title = {Properties of the Distant Kuiper Belt: Results from the Palomar Distant Solar System Survey},
Author = {Megan E. Schwamb and Michael E. Brown and David L. Rabinowitz and Darin Ragozzine},
Journal = {\href{http://dx.doi.org/10.1088/0004-637X/720/2/1691}{The Astrophysical Journal}},
Year = {2010},
Month = {September},
Number = {2},
Pages = {\href{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}{1691}},
Volume = {720},
Timestamp = {2014.09.21},
}
\end{filecontents*}
\begin{document}
\nocite{*}
\bibliographystyle{authordate1}
\bibliography{\jobname}
\end{document}
答案2
回答第一个问题:如何让笔记条目中的 URL 可点击?使用以下命令:
note={\url{http://...}}