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.

How do I use old style numbers everywhere without using fontspec? Or is it even possible? Where do I find the documentation for the fonts in the LaTeX Font Catalogue?

Minimum (Non)Working Example:

\documentclass{article}
\usepackage[T1]{fontenc}

% Uncomment either of the following two lines:
%\usepackage[Numbers=OldStyle]{tgpagella}
%\usepackage[osf][tgpagella]

\begin{document}
  Hello World!
  1234567890
\end{document}
share|improve this question
1  
Have a look at this question. –  lockstep Jan 5 '11 at 11:45

1 Answer 1

up vote 8 down vote accepted

You can use \oldstylenums{01234567890} for specific cases. However, some font packages such as mathpazo which is palatino have options to set this automatically for text so that you do not need to type in the command explicitly, so you simply load the package normally, for example for Palatino is:

\usepackage[sc,osf]{mathpazo}

You can see some working examples with various fonts in this question Palatino fonts and the number 713

One of the problems in setting oldstyle numerals globally is that they look wrong in tables with a lot of numbers. A good solution to this problem was provided by TH in the answers to the above question.

If your font does not have text figures built in; the textcomp package attempts to remedy this by effectively generating text figures from the currently-selected font.

Put \usepackage{textcomp} in your preamble. textcomp also allows you to use decimal points, properly formatted dollar signs, etc. within \oldstylenums{}.

share|improve this answer
    
Is it possible with tgpagella? –  Kit Jan 5 '11 at 10:26
    
@Kit not sure, you need to read the tex-gyre docs:) However, see the edit above for more. –  Yiannis Lazarides Jan 5 '11 at 11:00
    
\usepackage[osf]{mathpazo} is sufficient (the osf option includes the sc option). –  lockstep Jan 5 '11 at 11:43
    
@lockstep Thanks, but my understanding is that the OP wanted to use the tgpagella, which I was not sure if it includes an option like mathpazo. –  Yiannis Lazarides Jan 5 '11 at 11:46
2  
tgpagella does not have such an option -- but if you can tell the difference between tgpagella and mathpazo, good for you! Consider also \usepackage[fulloldstylenums]{kpfonts}. –  frabjous Jan 5 '11 at 19:41

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.