Le 12/10/12 21:52, jfbu a �crit :
[also posted on the luatex mailing list]
Hi again
\documentclass{article}
\usepackage{ifxetex}
\begin{document}
\ifxetex
\the\XeTeXmathcodenum`\a % 31457377
\the\XeTeXmathcodenum`\1 % 14680113
\the\XeTeXmathcodenum`\- % 37748736
\else
\the\luatexUmathcodenum`\a % 31457377
\the\luatexUmathcodenum`\1 % 28721
\the\luatexUmathcodenum`\- % 8704
\fi
\end{document}
Why the difference between querying the mathcode of a and 1?
This makes it impossible for me to use \luatexUmathcodenum to
query the family number for 1 or -, as I can not know in advance
if it will return a legacy mathcode (as here) or a Unicode mathcode
(if 1 or - have been assigned Unicode mathcode).
Jean-Francois