I am here again to seek your help. I would like all numbers in my document to be the same (in text or math mode). Now I have

enter image description here

Please note also the size difference. What is the way to have all numbers in Libertine irrespective of their environment? I mean leaving siunitx behaviour as it is and changing only the font for numbers (and for numbers alone) in math mode?

If I try


LuaLaTex complains there are no such shapes.

Here is the minimal example

% !Mode:: "TeX:UTF-8"

\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\setmathfont[math-style=ISO,bold-style=ISO]{Cambria Math}

Now I have
    \item Libertine in text mode: 123456789
    \item Libertine using siunitx in text mode: \SI{123456789}{\km\per\hour}
    \item Cambria in math mode: $123456789$
    \item Libertine using siunitx in math mode: $\SI{123456789}{\km\per\hour}$
I would like libertine in math mode too $123456789$.

1 Answer 1

%\setmonofont{Consolas}% not available for me
\setmathfont[math-style=ISO,bold-style=ISO]{Cambria Math}
\setmathfont[range=0048-0057]{Linux Libertine O}

[ ... ]

enter image description here

  • Wow, that was so easy. Thank you very much!
    – Emmet
    Feb 8, 2016 at 9:40

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.