TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.