12

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}
1
  • 1
    Have a look at this question.
    – lockstep
    Commented Jan 5, 2011 at 11:45

1 Answer 1

11

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{}.

5
  • Is it possible with tgpagella?
    – Kit
    Commented Jan 5, 2011 at 10:26
  • @Kit not sure, you need to read the tex-gyre docs:) However, see the edit above for more.
    – yannisl
    Commented Jan 5, 2011 at 11:00
  • \usepackage[osf]{mathpazo} is sufficient (the osf option includes the sc option).
    – lockstep
    Commented Jan 5, 2011 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.
    – yannisl
    Commented Jan 5, 2011 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
    Commented Jan 5, 2011 at 19:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .