On Sun, Oct 14, 2012 at 12:47:36PM +0200, jfbu wrote: > > Le 14 oct. 2012 a 12:25, Taco Hoekwater <[email protected]> wrote: > > > 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. > > As you tell me that in a later release the > \luatexUmathcodenum will, as \XeTeXmathcodenum, always > return a Unicode mathcode, this is good news to me as I have > just have to wait until this is done, and then making > mathastext finally compatible with Lualatex will be > immediate.
This should be fixed in SVN r4467, hopefully it will be available TeX Live 2013 release of LuaTeX. Regards, Khaled
