[luatex] a problem with luatexUmathcode

Taco Hoekwater taco at elvenkind.com
Sun Oct 14 12:25:00 CEST 2012


On 10/12/2012 10:01 PM, jfbu wrote:
> Hi,  [I just posted on c.t.tex, but figured here could be better]
>
> the following code gives dissimilar results for XeTeX
> and LuaLatex.
>
> \documentclass{article}
> \usepackage{ifxetex}
> \begin{document}
> \ifxetex
>
> \the\mathcode`\-           % 8704="2200
> \the\XeTeXmathcodenum`\-   % 37748736=2.2^{24} + 2.2^{21} + 0
>
> \else
>
> \the\mathcode`\-           % 8704 = "2200
>
> \the\luatexUmathcodenum`\- % 8704, if interpreted as Unicode
>                             % mathcode 0.2^{24} + 0.2^{21} + 8704
> \fi
> \end{document}
>
> This is a bit strange.

Somehow I misinterpreted what XeTeX did, so the current version
of \Umathcodenum in luatex remembers what the defining command was.
I can easily revert that to be compatible with XeTeX (after all,
that was the goal) but you will have to wait for the next release.

And at the moment, I do not see an easy solution for your problem,
sorry.

Best wishes,
Taco



More information about the luatex mailing list