latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
239 stars 28 forks source link

In TeX Live 2024, why does \substack insert a vertical gap between the lines when STIXMath-Regular is loaded? #636

Open AlMa1r opened 1 week ago

AlMa1r commented 1 week ago

Feeding

\documentclass{article}
\pagestyle{empty}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}% “TeX Gyre Termes Math” instead of “Latin Modern Math” would do as well.
\setmathfont[Extension=.otf,range={}]{STIXMath-Regular}%%% leave the range empty or insert some unrelated Unicode codes there.
\begin{document}
\[\substack{1\\2}\]
\end{document}

to lualatexs from TeX Live 2023 and TeX Live 2024 yields the following outputs, compared with diffpdf (left=2023, right=2024):

diffpdf output

For no good reason, a vertical gap between the lines has appeared. The same problem shows up when using inline math \(…\) instead of block math \[…\]. Is the appearance of the gap a bug or an official change of the user interface? In the latter case, how to remove the gap?

Crosspost: http://tex.stackexchange.com/questions/721050 .