[Dev-luatex] \mathchardef with neg. values
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Sat May 21 01:57:21 CEST 2011
Hello,
\catcode`\{=1
\catcode`\}=2
\def\msg{\immediate\write16 }
\mathchardef\foo=-1
\msg{[\the\foo] [\meaning\foo]}
\csname @@end\endcsname\end
Result with different values:
[-1] [\mathchar"000/]
[-2] [\mathchar"000.]
[-3] [\mathchar"000-]
[-16] [\mathchar"00/0]
[-256] [\mathchar"0/00]
...
Similar behaves \omathchardef.
The documentation says, the valid ranges are
\mathchardef: 0--"8000
\omathchardef: 0--"8000000
Thus it's probably a bug that negative values are
accepted.
Yours sincerely
Heiko Oberdiek
More information about the dev-luatex
mailing list