On Tue, 18 Feb 2025 at 09:10, Petr Olsak <p...@olsak.net> wrote:

> On 2/17/25 18:12, luigi scarso wrote:
>
>
> So it's a bug even considering
> 7.5.5 Math italic mess
> of the reference luatex.pdf ?
>
> --
> luigi
>
> Section 7.5.5 is very vague, its example of  \mathitalicsmode=0 or 1 show
> no difference (more exactly: I am unable to see any difference).
>
> When we keep the example 1.$f!$, 2. $f$!, 3. $f\/$! and we say, that
> italic correction inserted is correct in all three cases (as XeTeX does
> it), then we can see:
>
> \mathitalicmode=0:  1. OK, 2 bad, 3. bad
>
> \mathitalicmode=1:  1. OK, 2 bad, 3. OK
>
> \mathitalicmode=2:  1. bad, 2 OK, 3. OK
>
> It is magic.
>
> Petr
>

nothing is magic, at most it is not well documented; the C code is the
definitive reference.
See
https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/luatexdir/tex/mlist.c

--
luigi
_______________________________________________
dev-luatex mailing list -- dev-luatex@ntg.nl
To unsubscribe send an email to dev-luatex-le...@ntg.nl

Reply via email to