3

If I compile the following MWE with xelatex, it yields fraction lines at different heights in the second fraction. If I compile it with lualatex, that doesn't happen. If I omit the first fraction, it doesn't happen. If I omit unicode-math, it doesn't happen. (If I omit unicode-math, fontspec and use LaTeX, dvips and ps2pdf, it doesn't happen.)

Is that correct behaviour (if yes, for which engine?) and I should use other spacing code in the fraction (I need blank fractions) or is this a bug (in the other engine)?

\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\begin{document}
\(\frac{a}{b}\) \(\frac{\hspace*{1cm}}{\hspace*{1cm}}=\frac{\hspace*{1cm}}{\hspace*{1cm}} \)
\end{document}

enter image description here

2
  • 1
    looks like a bug to me luatex with fontspec gives the same height bar in all three fractions Nov 20, 2016 at 10:42
  • 2
    it is unrelated to the blanks, you get the same from \(\frac{a}{b}\) \(\frac{a}{b}\) the first fraction always uses a thicker rule Nov 20, 2016 at 11:01

1 Answer 1

5

This bug has been fixed. In miktex (which has a newer xetex) the output is correct.

enter image description here

See also Why is the fraction off the math axis in XeTeX?

You must log in to answer this question.

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