\intop without \nolimits gives bas spacing
Hello suppose following testing file: ------------------- CM, intop+nolimits: $\intop\nolimits_0^1$ CM, intop directly: $\intop_0^1$ \ifx\directlua\undefined \else \input luafonts \fi \font\fA=[latinmodern-math]:mode=base;script=math;ssty=0; \font\fB=[latinmodern-math]:mode=base;script=math;ssty=1; at7pt \Umathchardef\intop="1"00"00222B \textfont0=\fA \scriptfont0=\fB LM, intop+nolimits $\intop\nolimits_0^1$ LM, intop directly $\intop_0^1$ \bye ------------------- The first two output lines print integral via classical PlainTeX setting with Coputer Modern fonts. We can see that there is no difference between \intop without \nolimits and with \nolimits. The following two output lines shows LatinModern-math Unicode font. First prints \intop with \nolimits, the result is with somewhat tightly spacing but it is not our problem. This is due to suboptimal font parameters. But the last line prints \intop without \nolimits and there is significantly difference: big space after \intop before limits. IMHO, it is a bug in LuaTeX. If we run the same testing file via XeTeX then there is no difference between third and last line of output. Petr Olsak
On 11/17/2022 5:54 PM, Petr Olsak wrote:
Hello
suppose following testing file:
-------------------
CM, intop+nolimits: $\intop\nolimits_0^1$
CM, intop directly: $\intop_0^1$
\ifx\directlua\undefined \else \input luafonts \fi
\font\fA=[latinmodern-math]:mode=base;script=math;ssty=0; \font\fB=[latinmodern-math]:mode=base;script=math;ssty=1; at7pt
\Umathchardef\intop="1"00"00222B
\textfont0=\fA \scriptfont0=\fB
LM, intop+nolimits $\intop\nolimits_0^1$
LM, intop directly $\intop_0^1$
\bye i can't run it but maybe you want
\mathnolimitsmode 3 Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
No, \mathnolimitsmode value affects the third line (consistent with documentation], but the last line is unaffected. It seems like subscript: 0 superscript +ic (terminology from documentation). The \showlists of the third line (which is correct, \mathnolimitsmode=0) prints .\hbox(8.05+3.06)x6.65, shifted -0.00499, direction TLT ..\fA ∫ .\kern-3.32 (font) .\vbox(15.258+0.14)x7.863, shifted 5.05501, direction TLT ..\hbox(4.648+0.0)x4.543, shifted 3.32, direction TLT ...\fB 1 ..\kern5.962 (font) ..\hbox(4.648+0.14)x4.543, direction TLT ...\fB 0 but the \showlists of the last line prints: \hbox(8.05+3.06)x6.65, shifted -0.00499, direction TLT .\fA ∫ \vbox(15.258+0.14)x7.863, shifted 5.05501, direction TLT .\hbox(4.648+0.0)x4.543, shifted 3.32, direction TLT ..\fB 1 .\kern5.962 (font) .\hbox(4.648+0.14)x4.543, direction TLT ..\fB 0 Note, there is no "\kern-3.32 (font)" which is the minus value of the italic correction of the int operator. Petr Olsak On 11/17/22 19:09, Hans Hagen wrote:
On 11/17/2022 5:54 PM, Petr Olsak wrote:
Hello
suppose following testing file:
-------------------
CM, intop+nolimits: $\intop\nolimits_0^1$
CM, intop directly: $\intop_0^1$
\ifx\directlua\undefined \else \input luafonts \fi
\font\fA=[latinmodern-math]:mode=base;script=math;ssty=0; \font\fB=[latinmodern-math]:mode=base;script=math;ssty=1; at7pt
\Umathchardef\intop="1"00"00222B
\textfont0=\fA \scriptfont0=\fB
LM, intop+nolimits $\intop\nolimits_0^1$
LM, intop directly $\intop_0^1$
\bye i can't run it but maybe you want
\mathnolimitsmode 3
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ dev-luatex mailing list dev-luatex@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-luatex
participants (2)
-
Hans Hagen
-
Petr Olsak