
クラス、パッケージ、参考文献スタイルhyperref
を使用して URLを作成しようとしています。 論文はファイル内でと表現されており、URL エントリは では使用されていないため、エントリ に挿入しました。 これですべて正常に動作しますが、URL をクリックしてインターネット上の場所に誘導できるようにしたいと思います。 これはどのように実現できますか? さらに、クリック可能なハイパーリファレンスの背後に見苦しい URL を隠すことは可能ですか? たとえば、ジャーナルの略語の背後に DOI を、論文ページの背後に ADS (Astrophysics Data System) を隠すなどです。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}},
ちなみに、最初の 3 人の著者のファーストネームとミドルネームのイニシャルは丸括弧で囲むのに、4 人目の著者のファーストネームは囲まないのはなぜでしょうか。
\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 (Astrophysics Data System) を隠すなどです。
これも実行できます (ただし、これを行うのがどの程度賢明かはわかりません...)。フィールド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://...}}