在天文学期刊文章中,我看到了参考书目样式,其中包括粉红色的 DOI 链接和蓝色的 NASA ADS 链接。
例:见图。
图片来源: http://iopscience.iop.org/article/10.3847/0004-6256/151/2/22/pdf
我需要做什么才能在自己的乳胶文档中重现这个参考书目?
答案1
我认为您必须修改aasjournal.bst
文件才能执行这样的操作。
此解决方案几乎与您想要的相同。它仅超链接卷,而不是卷和页面。您可以这样做,但必须进行更多更改。
这是一个补丁文件,您可以使用它来创建新bst
文件。将其保存为,aasjournal.bst.patch
然后按如下方式进行修补(Linux 命令):
$ cp aasjournal.bst aasjournal-hyperref.bst
$ patch aasjournal-hyperref.ast < aasjournal.bst.patch
aasjournal.st.patch
--- aasjournal.bst 2017-12-23 20:38:13.024114255 +1030
+++ aasjournal-hyperref.bst 2017-12-23 22:25:45.078409327 +1030
@@ -148,6 +148,7 @@
year
version
url
+ adsurl
}
{}
{ label extra.label sort.label short.list }
@@ -1147,6 +1148,30 @@
if$
}
+%%%%%%% Custom href Functions
+
+FUNCTION {format.journal}
+{ journal empty$
+ { "" }
+ { doi empty$
+ { journal }
+ { "\href{http://dx.doi.org/" doi * "}{\color{magenta}" * journal * "}" * }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.vol}
+{ volume empty$
+ { "" }
+ { adsurl empty$
+ { volume }
+ { "\href{" adsurl * "}{\color{cyan}" * volume * "}" * }
+ if$
+ }
+ if$
+}
+
%%%%%%% End of functions from astrobib
FUNCTION {article}
@@ -1157,9 +1182,8 @@
format.date "year" output.check
date.block
crossref missing$
- { journal
- "journal" output.check
- format.vol.num.pages output
+ { format.journal output
+ format.vol output
}
{ format.article.crossref output.nonnull
format.pages output
平均能量损失
bib 条目取自 URL。
\documentclass{aastex61}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{2011ApJ...738...13B,
author = {{Batygin}, K. and {Brown}, M.~E. and {Fraser}, W.~C.},
title = "{Retention of a Primordial Cold Classical Kuiper Belt in an Instability-Driven Model of Solar System Formation}",
journal = {\apj},
archivePrefix = "arXiv",
eprint = {1106.0937},
primaryClass = "astro-ph.EP",
keywords = {Kuiper belt: general, planets and satellites: dynamical evolution and stability, methods: analytical, methods: numerical},
year = 2011,
month = sep,
volume = 738,
eid = {13},
pages = {13},
doi = {10.1088/0004-637X/738/1/13},
adsurl = {http://adsabs.harvard.edu/abs/2011ApJ...738...13B},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
@ARTICLE{2013A&A...556A..28B,
author = {{Batygin}, K. and {Morbidelli}, A.},
title = "{Analytical treatment of planetary resonances}",
journal = {\aap},
archivePrefix = "arXiv",
eprint = {1305.6513},
primaryClass = "astro-ph.EP",
keywords = {celestial mechanics, planets and satellites: dynamical evolution and stability, chaos},
year = 2013,
month = aug,
volume = 556,
eid = {A28},
pages = {A28},
doi = {10.1051/0004-6361/201220907},
adsurl = {http://adsabs.harvard.edu/abs/2013A%26A...556A..28B},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
\end{filecontents}
\begin{document}
\nocite{*}
\bibliographystyle{aasjournal-hyperref}
\bibliography{\jobname.bib}
\end{document}
答案2
这是 A&A 期刊的参考书目样式:https://github.com/yangcht/AA-bibstyle-with-hyperlink
修改后的aa.bst
文件(称为aa_url.bst
)基本上执行相同的工作,通过使用adsurl
条目和doi
条目来创建可点击的超链接。