Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

You can use \nolinkurl inside the second argument of \href:

\href{http://mirror.ctan.org/foo/bar}{\nolinkurl{CTAN:foo/bar}}
share|improve this answer
    
Or simply with \texttt{CTAN:foo/bar}/\ttfamily CTAN:foo/bar in the second part of \href. –  Speravir Mar 25 '13 at 23:39
    
@HeikoOberdiek: Yes, that works but for a document with lots of \href, it is tedious to change them all (at least by hand). –  Emanuel Berg Mar 25 '13 at 23:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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