# Integral limits placement with unicode-math

I'm struggling with integral limits placement when the unicode-math package is used (both under LuaLaTeX and XeTeX). The following example illustrates the issue:

\documentclass[10pt]{article}
\usepackage{unicode-math}
\begin{document}
$$\displaystyle \int\nolimits_0^1f(x)dx=\lim\nolimits_{n\to\infty}\frac1n\sum\nolimits_{i=1}^nf\left(\frac in\right)$$

\bigskip
$$\displaystyle \int\limits_0^1f(x)dx=\lim\limits_{n\to\infty}\frac1n\sum\limits_{i=1}^nf\left(\frac in\right)$$

\bigskip
$$\int\nolimits_0^1f(x)dx=\lim\nolimits_{n\to\infty}\frac1n\sum\nolimits_{i=1}^nf\left(\frac in\right)$$

\bigskip
$$\int\limits_0^1f(x)dx=\lim\limits_{n\to\infty}\frac1n\sum\limits_{i=1}^nf\left(\frac in\right)$$
\end{document}


As you can see, the lower limit is positioned differently with unicode-math (and LuaLaTeX 1.0.0 from MikTeX distribution) and without unicode-math Is this a unicode-math issue, or the Latin Modern Math font issue? Though, other math fonts show similar behavior and shift the lower integral limit down and a bit left (STIX Two Math for example). Or may be it's the LuaTeX engine issue (XeTeX though also moves the lower limit in the same direction as LuaTeX)?

Note, that \int\limits places the limits a bit differently from the original LaTeX engine as well. It shifts the upper limit to the right a bit, and the lower limit to the left a bit.

So where to report this? I think that the original limit placement looks better.

• The placing is different between luatex and pdftex. But it is again different with a luatex 1.0.4. (which you could get by using miktex next). I don't see the "touching" there. – Ulrike Fischer Mar 23 '17 at 9:49
• it is using a different font and a different math layout implementation so you can't expect them to be exactly the same – David Carlisle Mar 23 '17 at 9:50
• @DavidCarlisle: I understand that. Though I'd assume that this big difference isn't desirable. – Sergei Golovan Mar 23 '17 at 10:04
• @UlrikeFischer: Good to hear that. I'll try to get the update and look at the changes. – Sergei Golovan Mar 23 '17 at 10:05
• @UlrikeFischer: Unfortunately, with LuaTeX 1.0.4 the result looks exactly the same. – Sergei Golovan Mar 23 '17 at 10:14