in my minimum example

This is a test: $5$ = 5

compiled with lualatex -shell-escape doc.tex I get a wrong font for math-digits: wrong-font-math-digits

What can I do to get the same digits as in non-math-mode?

  • 6
    Why you say wrong? It is math font, not equal to text font. This is acceptable. Of course, depending which text font you use, it could be ugly, but not wrong.
    – Sigur
    Dec 28, 2017 at 15:08
  • I'd like the math-font to be equal or at least similar to the text-font. Digits should look the same. Dec 28, 2017 at 15:10
  • @Sigur With newtxsf the math should be sans serif. Dec 28, 2017 at 15:12
  • @user2033412 Would compiling with pdflatex be a workaround? Dec 28, 2017 at 15:13
  • @samcarter: nope -- The build-server uses lualatex. Dec 28, 2017 at 15:18

1 Answer 1


With lining numbers it's not so difficult.



This is a test: $0123456789$ = 0123456789

$a-b=c$ abc


enter image description here

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.