1

I have trouble with \url and \footnote

\documentclass[margin=5mm]{standalone}
\usepackage{hyperref}

\begin{document}

my text \footnote{\url{https://webbook.nist.gov/cgi/cbook.cgi?ID=C69727&Type=HCOMBS#HCOMBS}}

\end{document}

this is the error message:

! Illegal parameter number in definition of \Hy@tempa.H ...gi/cbook.cgi?ID=C69727&Type=HCOMBS#HCOMBS}}

Without the &Type=HCOMBS#HCOMBS link portion the code works fine, so I guess the problem lies in & character. Any suggestion?

Thank you in advance

5

If you have an url with special chars you should define it (and the main problem is the # here):

\documentclass{article}
\usepackage{hyperref}
\urldef\myurl\url{https://webbook.nist.gov/cgi/cbook.cgi?ID=C69727&Type=HCOMBS#HCOMBS}
\begin{document}

my text \footnote{\myurl}

\end{document}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.