12

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.)

Consider the minimal example

\documentclass{article}
\usepackage{mathtools}
\usepackage{unicode-math}
\setmathfont{lmmath-regular.otf}
\begin{document}
\begin{equation*}
  \int f(x) \, \mathrm{d}x
\end{equation*}
\end{document}

When compiled with lualatex the space between the integral sign and f(x) is too large, larger than what I get if I compile with xelatex (or if I'm not using unicode-math).

  • With lualatex:

enter image description here

  • With xelatex:

enter image description here

  • Without unicode-math:

enter image description here

I'm using a recently updated TeXlive 2011, and the same thing happens with Asana-Math.otf or xits-math.otf as math font. Can this be corrected somehow?

1
  • Happens the same to me.
    – egreg
    Commented Nov 30, 2011 at 21:10

1 Answer 1

11

Update 28-10-2015: This has been fixed in version 0.85 of LuaTeX, see http://tracker.luatex.org/view.php?id=488


Looks something wrong with italic correction of integrals in the absence of super or subscripts, adding an empty superscript \int^{} f(x) fixes the spacing. Odd enough, adding empty subscript \int_{} f(x) makes it even closer! I'd report this to luatex bug tracker.

14
  • 1
    After tracking down the bug tracker, it seems you've reported this already, about a year ago: tracker.luatex.org/view.php?id=488 Commented Dec 1, 2011 at 0:05
  • 1
    I can confirm that this bug is still in TL2014. Is it going to be fixed anytime soon?
    – Gaussler
    Commented May 29, 2015 at 11:00
  • 1
    @KhaledHosny, it also happens in TL2015. Sorry to say it, but it makes unicode-math pretty much useless for serious production work. Has no workaround been found yet?
    – Gaussler
    Commented Aug 17, 2015 at 13:23
  • 1
    This, along with the incorrect positioning of sub-/superscripts for integral signs (tex.stackexchange.com/q/267062/51235, which is supposedly the same bug), really destroys any use unicode-math might have offered. Why is this issue being ignored?
    – Socob
    Commented Sep 21, 2015 at 1:05
  • 1
    It is on TeX live now, and the spacing is fixed, but the subscripts look quite far from the integral sign. A new bug perhaps?
    – Gaussler
    Commented Jun 23, 2016 at 19:05

You must log in to answer this question.

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