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

3 Answers 3


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


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



or also for the sans serif Biolinum


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.