TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is a follow-up to this question. It explains switching math fonts within a single document with unicode-maths \mathversion command.

The unicode-math docs have it that

\setmathfont{math-style=Tex}{Cambria Math}

is equivalent to

\setmathfont{Cambria Math}

Now if I want to use a math font that is by design upright e.g. the Neo Euler font. I have to use


If I want to switch between the Euler font and another one that is italic by design, say XITS. Using


to be able to use \mathversion{NE} and \mathversion{XM} as in this example


does not work. math-style as a package option is not switched as well, so everything is typeset upright. I haven’t found a way around this, as package options are set when the package is loaded.

share|improve this question
Looks like a unicode-math bug to me, this does not seem to be an intended behavior. – Khaled Hosny Feb 10 '12 at 13:34
Based on @KhaledHosny's comment, have you reported this as a bug? – Joseph Wright Apr 15 '12 at 9:12
@Joseph Yes, that is what I did. – uli Apr 16 '12 at 18:32
up vote 8 down vote accepted

I've been wrong before but I think this isn't possible. \mathversion works by simply changing the font that each math char is pointing to, whereas to change from upright to italic maths you need to remap every single symbol that would be affected by the change.

It doesn't seem likely to me that people will want to change this often if ever in a document, so I don't think it's that cumbersome to write instead


and so on.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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