This question already has an answer here:

I'm try to open a .pdf to a specific page from my pdf generate using pdflatex, this is a valid urlthat do what I want in my browser:


#page=4 indicate the page I want to open, but it seems that when I use it in a \footnotedoesn't work:


In my LaTeX document, doesn't work I've got this error:

Illegal parameter number in definition of \Hy@tempa.<to be read again>p ....icomos.org/charters/venice_e.pdf#page=4}}

Caused by #page=4. This is a MWE:

words words words \footnote{\url{http://www.icomos.org/charters/venice_e.pdf#page=4}}

How can I solve the problem?

marked as duplicate by henrique, jubobs, cmhughes, Stefan Kottwitz Oct 21 '13 at 16:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Three possible solutions

  1. Using \ to scape the special character, i.e., \footnote{\url{http://www.icomos.org/charters/venice_e.pdf\#page=4}}

  2. Use a new command named \urlfootnote, as described by the following code in your preamble:


  1. Define it at the beginning of your code, like this:


text\footnote{WWW: \myurl}
  1. Martin's complete answer here: https://tex.stackexchange.com/a/12864/27833

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