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

I’ve noticed during my XeLaTeX typesetting with hyperref package that since not so long ago, URLs (using \url) have been typed in lining figures (as opposed to the oldstyle figures) whatever my setting for default body font is.

I think that this was done for good reason to improve the readability of the URLs. Nevertheless, can this actually be easily changed if I want to have all figures in my text back to oldstyle, including those in the URLs?

share|improve this question
Please provide a MWE which demonstrates your problem. – canaaerus Jul 14 '12 at 7:33

You can use the command '\urlstyle`.

Compile the following with XeLaTeX:

\setmainfont[Numbers={Monospaced,OldStyle}]{Minion Pro}
\setmonofont[Scale=0.89]{DejaVu Sans Mono}


You'll get:

enter image description here

share|improve this answer

Your Answer


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.