
Estoy intentando acceder a hyperref
una URL usando clase scrartcl
, Bibtex
paquete natbib
y estilo de bibliografía authordate1
. El documento se caracteriza como @article
en el .bib
archivo y como la entrada URL no se utiliza, @article
la inserté en la entrada note
. Todo esto funciona bien, pero me gustaría poder hacer clic en la URL y acceder al lugar en Internet. ¿Cómo se puede hacer esto? Además, ¿es posible ocultar la fea URL detrás de una hiperreferencia en la que se puede hacer clic, por ejemplo, el DOI detrás de la abreviatura de la revista y el ADS (Sistema de datos de astrofísica) detrás de las páginas del artículo?
Entrada .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}
}
Respuesta1
Usted pregunta:
Todo esto funciona bien, pero me gustaría poder hacer clic en la URL y acceder al lugar en Internet. ¿Cómo se puede hacer esto?
Parece que tienes demasiados pares de llaves encerrando el contenido del note
campo. en lugar de escribir
Note = {{\url{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}}},
Deberías escribir
Note = {\url{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}},
Por cierto, ¿por qué rodea los nombres y las iniciales del segundo nombre de los tres primeros autores, pero no el nombre del cuarto autor, entre paréntesis redondos?
\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}
También preguntaste:
Además, ¿es posible ocultar la fea URL detrás de una hiperreferencia en la que se puede hacer clic, por ejemplo, el DOI detrás de la abreviatura de la revista y el ADS (Sistema de datos de astrofísica) detrás de las páginas del artículo?
Esto también se puede hacer (aunque no estoy seguro de si es aconsejable hacerlo...). Simplemente reemplace el contenido original de los campos journal
y pages
con {\href{...}{original content}
. P.ej,
Journal = {\href{http://dx.doi.org/10.1088/0004-637X/720/2/1691}{The Astrophysical Journal}},
y
Pages = {\href{http://adsabs.harvard.edu/abs/2010ApJ...720.1691S}{1691}},
Al hacerlo, se generará el siguiente resultado:
\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}
Respuesta2
Respuesta a la primera pregunta: ¿cómo se puede hacer clic en una URL de una entrada de nota? Usando este comando:
note={\url{http://...}}