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 am using the Linux Libertine font for my document. The font provides different numeral sets, "normal" numbers which are all the same height, and medieval/minuscle numbers with varying height.

enter image description here

By default, LaTeX uses the normal numbers but I prefer the look of the medieval numbers.

How can I tell LaTeX which numeral set to use?

P.S.: I am using LuaLaTeX

share|improve this question
up vote 13 down vote accepted

In LuaLaTeX and XeLaTeX you can specifiy font features with the fontspec package.

The Numbers/RawFeature features are

  • Lining and Uppercase/lnum: normal/majuscule figures
  • OldStyle and Lowercase/onum: medieval/minuscule figures
  • Proportional/pnum
  • Monospaced/tnum (t stands for tabular)
  • SlashedZero/zero: gives slashed 0

You can activate these features with either




If you use the libertineotf package (which also provides shortcuts to change these settings in-document, cf the package manual), you can give these arguments directly as package options:


If you don't you can still set the options directly when specifying the fonts:

\setmainfont[RawFeature=+onum;+pnum]{Linux Libertine O}
\setsansfont[RawFeature=+onum;+pnum]{Linux Biolinum O}

Here is an exemplary code:

\setmainfont{Linux Libertine O}
        \textbf{Normal Zero} &                                              Monospaced &                                              Proportional &  \\
        Lining               &   \addfontfeatures{Numbers={Lining,Monospaced}}\numbers &  \addfontfeatures{Numbers={Lining,Proportional}} \numbers &  \\
        OldStyle             & \addfontfeatures{Numbers={OldStyle,Monospaced}}\numbers & \addfontfeatures{Numbers={OldStyle,Proportional}}\numbers &  \\

        \textbf{Slashed Zero} &                                              Monospaced &                                              Proportional &  \\
        Lining                &   \addfontfeatures{Numbers={Lining,Monospaced}}\numbers &  \addfontfeatures{Numbers={Lining,Proportional}} \numbers &  \\
        OldStyle              & \addfontfeatures{Numbers={OldStyle,Monospaced}}\numbers & \addfontfeatures{Numbers={OldStyle,Proportional}}\numbers &  \\

enter image description here

share|improve this answer

Use Numbers=OldStyle:

\setmainfont[Numbers={OldStyle}]{Linux Libertine O}

From fontspec's doc, table 4:

 Feature         Option             Tag

 Numbers =      Uppercase/Lining     lnum
                Lowercase/OldStyle   onum
                Proportional         pnum
                Monospaced           tnum
                SlashedZero          zero
                Arabic               anum
share|improve this answer



or also for the sans serif Biolinum

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.