[luatex] incompatible change to mathcode

Khaled Hosny khaledhosny at eglug.org
Wed May 9 21:11:46 CEST 2012


On Wed, May 09, 2012 at 08:39:22PM +0200, Philipp Stephani wrote:
> 2012/5/9 Taco Hoekwater <taco at elvenkind.com>:
> > That said, probably the result of (\the)\mathcode can be reverted
> > back to compatibility with TeX82, and output a warning (and zero)
> > if the actual value is out-of-range (like XeTeX does).
> 
> I would actually prefer that (or rather, generate an error). Better
> fail loudly than silently.

It does now:

\showthe\mathcode`a     % OK
\Umathcode`a="7"FF"FFFFF
\showthe\Umathcodenum`a % OK
\showthe\mathcode`a     % error
\Umathcode`a="7"01`a
\showthe\mathcode`a     % OK

gives:

> 29025.
l.1 \showthe\mathcode`a
                       
? 
> -1048577.
l.3 \showthe\Umathcodenum`a
                           
? 
! Extended mathchar used as mathchar (-1048577).
l.4 \showthe\mathcode`a
                       
? 
> 0.
l.4 \showthe\mathcode`a
                       
? 
> 29025.
l.6 \showthe\mathcode`a
                       
? 

(identical to XeTeX)

Regards,
 Khaled


More information about the luatex mailing list