1

How to deal with % sign in url when using hyperref and bibentry provides a fix for dealing with % sign in url when using hyperref and bibentry

Neither the basic call

[\usepackage[backref=page]{hyperref}]

, nor the proposed fix, work when the bibitem invokes hyperlinks which contains the "%" character. This is a regular occurrence in bibliographies from NASA ADS/arXiv.

Example follows:

\documentclass{article}
\usepackage{natbib}
\usepackage[backref=page]{hyperref}

\begin{document}

This is a well-behaved citation: \citet{2004ApJ...613L.153A}

This is a problematic citation with \%26 in the url: \cite{2013A&A...553A..49A}. It fails when [backref=page] is invoked, also with the fix previously suggested under questions/141247.

\begin{thebibliography}{2}
\bibitem[\protect\astroncite{{Alonso} et~al.}{2004}]{2004ApJ...613L.153A}
\href{http://esoads.eso.org/abs/2004ApJ...613L.153A}{
{Alonso} R, {Brown} TM, {Torres} G, et~al., 2004, Title2. 
{APJL}, 613, L153--L156}

\bibitem[\protect\astroncite{{Abe} et~al.}{2013}]{2013A&A...553A..49A}
\href{http://esoads.eso.org/abs/2013A%26A...553A..49A}{
{Abe} L, {Gon{\c c}alves} I, {Agabi} A, et~al., 2013, Title1.
{AAP}, 553, A49}

\end{thebibliography}
\end{document}
David Carlisle
  • 757,742

0 Answers0