By loading both mathpazo and eulervm, the units are written in the euler mathfont when using siunitx and not in upright roman font. Even if it's explicitly set in sisetup :


I'm using Mac TexLive 2016, all packages updated. When \mathrm is used regularly in math mode, it works as expected. So there must be some issue how siunitx uses \mathrm.


%commenting eulervm out prints units right again


with eulervm

as opposed to

without eulervm

  • 1
    Does \sisetup{mode=text} give you the desired results? Mar 29 '17 at 14:16
  • @AndrewSwann: Yes, that works. I tested your proposition. You should transfer your comment into an answer.
    – user31729
    Mar 29 '17 at 14:23
  • OK I forgot that. I'm using the option euler-digits as well. And then text modes doesn't show the euler digits, which would be nice.
    – Abufari
    Mar 29 '17 at 14:25
  • @ChristianHupfer The canonical answer from the package author below is better. Mar 29 '17 at 15:08

This is 'by design': eulervm sets up letters in \mathnormal which are very different from \mathrm, so siunitx does

\sisetup{math-rm = \mathnormal}

at the start of the document unless the user has changed it from the standard value of \mathrm. You can override this at the start of the document:

\AtBeginDocument{\sisetup{math-rm = \mathrm}}
\SI{5}{m/s} $5\nobreak\,\mathrm{m}/\mathrm{s}$
  • Yes, by using \AtBeginDocument{\sisetup{unit-math-rm=\mathrm}} I get the expected result. Thank you, never would have thought of the \AtBeginDocument
    – Abufari
    Mar 29 '17 at 14:36

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.