I wish I could use the semi-bold version of the Libertine font.

By default, I use elzevirian numbers and there, no problem, I can have elzevirian numbers in semi-bold.

On some occasions, I would need to use lining nums with semi-bold.

However, the lining numbers that are supposed to be in semi-bold are actually in normal weight.

enter image description here

Here is a MWE :




Some "default" text with old style nums : 1234567890\\
\textsb{Some semi-bold text with old style nums : 1234567890}\\
\textbf{Some bold text with old style nums : 1234567890}\\

Some text with lining nums : \liningnums{1234567890}\\
\textsb{Some semi-bold text with lining nums : \liningnums{1234567890}}\\
\textbf{Some bold text with lining nums : \liningnums{1234567890}}\\

Do you know how to solve this problem?

Thank you.

  • Welcome. I get semibold figures. Can you please add \listfiles to the top of the example, run LaTeX and report what you find at the end of the log file?
    – egreg
    Mar 26, 2020 at 17:25
  • @egreg not with lualatex, only with pdflatex. Mar 26, 2020 at 17:33
  • @egreg I tried with PDFLaTeX and... its works. I have no problem anymore. Idem with if I use Lualatex or Xetex. It's weird... Normally, I use the TeXMaker with "Quick Run". Sorry for the inconvenience, I didn't know "Quick run" could cause this kind of problem.
    – Bastien
    Mar 26, 2020 at 18:06

1 Answer 1


It works with pdflatex, but not with (Lua|Xe)LaTeX, due to a bug in libertine.sty that resets the font family, instead of adding the required features when doing \liningnums.




\iftutex % XeLaTeX or LuaLaTeX


Some "default" text with old style nums: 1234567890\\
\textsb{Some semi-bold text with old style nums: 1234567890}\\
\textbf{Some bold text with old style nums: 1234567890}

Some text with lining nums: \liningnums{1234567890}\\
\textsb{Some semi-bold text with lining nums: \liningnums{1234567890}}\\
\textbf{Some bold text with lining nums: \liningnums{1234567890}}


enter image description here

  • Yes, you are right! It works! Thank you very much! ;)
    – Bastien
    Mar 26, 2020 at 19:17
  • 2
    Version 5.3.0 of libertine, released 2020-03-26, should have fixed the issue.
    – egreg
    Mar 27, 2020 at 21:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .