\
oldstylenums{
digits}
, which
by default uses an old-style set embedded in Knuth’s ‘math italic’
font. The command isn’t sensitive to the font style of surrounding
text: the glyphs are only available to match the normal medium weight
Computer Modern Roman fonts.
The textcomp package changes \
oldstylenums
to use the
glyphs in the Text Companion fonts (LaTeX TS1 encoding) when
in text mode, and also makes them available using the macros of the
form \
text<number>oldstyle
, e.g., \
textzerooldstyle
.
(Of course, not all font families can provide this facility.)
Some font packages (e.g., mathpazo) make old-style figures
available and provide explicit support for making them the default:
\
usepackage[osf]{mathpazo}
selects a form where digits are
always old-style in text. The fontinst package will
automatically generate “old-style versions” of commercial Adobe Type
1 font families for which “expert” sets are available.
It’s also possible to make virtual fonts, that offer old-style digits,
from existing font packages. The cmolddig bundle provides
a such a virtual version of Knuth’s originals, and the eco
or hfoldsty bundles both provide versions of the EC
fonts. The lm family offers old-style figures to OpenType
users (see below), but we have no stable mapping for lm
with old-style digits from the Adobe Type 1 versions of the fonts.
Originally, oldstyle figures were only to be found the expert sets of
commercial fonts, but now they are increasingly widely available. An
example is Matthew Carter’s Georgia font, which has old-style figures
as its normal form (the font was created for inclusion with certain
Microsoft products and is intended for on-screen viewing).
OpenType fonts have a pair of axes for number variations —
proportional/tabular and lining/oldstyle selections are commonly
available. “Full feature access” to OpenType fonts, making such
options available to the (La)TeX user, is already supported by
XeTeX using, for example, the fontspec
package. Similar support is also in the works for
LuaTeX.
This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=osf