[XeTeX] Why is the fraction off the math axis in XeTeX?

Henri Menke henrimenke at gmail.com
Sun Dec 6 15:00:42 CET 2015

I asked this question on TeX.SX, but Enrico Gregorio suggested that this
is better suited for the XeTeX mailing list.  The question has
essentially the same content as this e-mail, but features some sample
images.  You may find it here:


Now to the problem:

The fraction in textstyle is off the math axis in XeTeX when I use a
Unicode math font. In LuaTeX, though, it aligns nicely with the math
axis. The follwing MWE should illustrate this. Also, in displaystyle
everything is fine.

  \input luaotfload.sty
$-{1\over 2}$%
\font\ms="Latin Modern Math:script=math;+ssty=0" at 7pt
$-{1\over 2}$

How can I fix this? Does it suffice to adjust \fontdimen parameters?

This does not only happen in plain XeTeX, but also in LaTeX with the
unicode-math package. Unfortunately, I cannot show a side-by-side
comparison here, because unicode-math immediately changes the math font
to “Latin Modern Math”.


Kind regards, Henri

More information about the XeTeX mailing list