Text FormattingText Numerals by Default

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
egan
Posts: 4
Joined: Sun Jul 19, 2009 7:40 am

Text Numerals by Default

Post by egan »

How can I get inline numerals to be formatted lowercase globally?
I know I can use \oldstylenums{} on a case by case basis, but I would like to be able to get this done for all inline numerals (i.e. it is preferable the titles and figures use uppercase).

If their is a bare-boned package that does this, I would appreciate being pointed in this direction, but I would prefer a line that I could insert in my preamble or integrate with my normal document classes.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Text Numerals by Default

Post by frabjous »

Depends on the font. If you want to stick with Computer Modern, you can use:

\usepackage{eco}

This will make text-mode numerals old style. Math mode numerals will still be lined. (You may need to redefine \thesection, \thechapter etc if you don't want headings affected.

Though you might look into some others too. The kpfonts and mathpazo packages also have options for making old style numerals the standard (as do, I think, all the TeX Gyre GUST fonts), though they'll change the body font too. (I prefer them personally.) It's also very easy with XeLaTeX and the fontspec package for arbitrary opentype fonts that have old style numerals.
Post Reply