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 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 percent sign can be escaped with a backslash:
\newcommand{\mylink}{\href{http://foo.edu/level\%20one.html}{Answer}}