Is there a \urlstyle{tt} (or something else to that effect) for \href to make it the same font as \url links? I'm happy with any monospace font, as long as they both (\url and \href) show up the same.
Asked
Active
Viewed 1,137 times
11
Emanuel Berg
- 1,827
1 Answers
11
You can use \nolinkurl inside the second argument of \href:
\href{http://mirror.ctan.org/foo/bar}{\nolinkurl{CTAN:foo/bar}}
Heiko Oberdiek
- 271,626
\texttt{CTAN:foo/bar}/\ttfamily CTAN:foo/barin the second part of\href. – Speravir Mar 25 '13 at 23:39\href, it is tedious to change them all (at least by hand). – Emanuel Berg Mar 25 '13 at 23:42