[luatex] \mathchardef\foo=\mathcode`\x
jfbu
jfbu at free.fr
Fri Dec 18 22:57:17 CET 2015
Hi David,
>
> [snip]
> David
>
> For people wanting to use amsmath, a fix would be to change line 741
> of amsmath,sty so it looks something like
>
> \ifx\hyphenationmin\undefined
> \mathchardef\std at minus\mathcode`\-\relax
> \mathchardef\std at equal\mathcode`\=\relax
> \AtBeginDocument{%
> \mathchardef\std at minus\mathcode`\-\relax
> \mathchardef\std at equal\mathcode`\=\relax
> }
> \else
> \Umathcharnumdef\std at minus\Umathcodenum`\-\relax
> \Umathcharnumdef\std at equal\Umathcodenum`\=\relax
> \AtBeginDocument{%
> \Umathcharnumdef\std at minus\Umathcodenum`\-\relax
> \Umathcharnumdef\std at equal\Umathcodenum`\=\relax
> }
> \fi
I thought package lualatex-math by Philipp Stephani addressed
these amsmath problems with \std at minus and \std at equal already ?
as per mathastext.sty package, it already does the right thing
but in a rather brutal way regarding \@newmcodes macro or amsmath
(it replaces it by \relax :-( )
best
Jean-François
More information about the luatex
mailing list