....\mathon
....\hbox(8.5+2.97)x4.22, direction TLT
.....\mathon
.....\hbox(8.5+2.97)x4.22, direction TLT
......\hbox(7.97+2.97)x4.22, direction TLT
.......\l_fontspec_font
......\vbox(8.5+0.0)x0.0, direction TLT
......\hbox(0.0+0.0)x0.0, shifted -2.5, direction TLT
.....\mathoff
....\l_fontspec_font (
....\mathoff
and the space is evident in
\vbox(0.0+0.0)x2.8, shifted -2.5
with XeLaTeX, versus
\hbox(0.0+0.0)x0.0, shifted -2.5, direction TLT
with LuaLaTeX.
The space does not show if the math font declarations are removed when the \vbox is again \hbox also in XeLaTeX.
If I add \tracingmacros=1, I get, when compiling with XeLaTeX,
\n@space ->\nulldelimiterspace \z@ \m@th
\m@th ->\mathsurround \z@
Missing character: There is no ^^@ in font LatinModernMath-Regular/OT:script=math;language=DFLT;!
The following example shows a spurious space after
\bigl(
when compiled with XeLaTeX, but not with LuaLaTeXThe relevant part of the log is, with XeLaTeX,
whereas, with LuaLaTeX, it is
and the space is evident in
with XeLaTeX, versus
with LuaLaTeX.
The space does not show if the math font declarations are removed when the
\vbox
is again\hbox
also in XeLaTeX.If I add
\tracingmacros=1
, I get, when compiling with XeLaTeX,hinting for a spurious character somewhere.