
我正在嘗試使用類別、套件和參考書目風格hyperref
的 URL 。該論文的特徵與文件中相同,並且由於 URL 條目未使用,因此我將其插入條目中。這一切正常,但我希望能夠單擊該 URL 並被引導至互聯網中的位置。如何才能做到這一點?此外,是否可以將醜陋的 URL 隱藏在可點擊的超引用後面,例如期刊縮寫後面的 DOI 和論文頁面後面的 ADS(天文物理資料系統)?scrartcl
Bibtex
natbib
authordate1
@article
.bib
@article
note
.圍脖條目:
% 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://...}}