0

The following

\usepackage{hyperref}  
\newcommand{\mylink}{\href{http://foo.edu/level%20one.html}{Answer}}  

gives an error because of the % sign. Is there a work around?

  • The solution here is the same as the other question. But searching for "href" and "command" didn't call up the results for "url" and "footnote". – Ethan Duckworth Sep 15 '17 at 17:50

1 Answers1

1

The percent sign can be escaped with a backslash:

\newcommand{\mylink}{\href{http://foo.edu/level\%20one.html}{Answer}}  
Heiko Oberdiek
  • 271,626