phst / lualatex-math

LuaTeX-specific enhancements and fixes for LaTeX math typesetting
LaTeX Project Public License v1.3c
13 stars 3 forks source link

avoid warning for \newmcodes@ with recent amsmath #19

Closed jfbu closed 8 years ago

jfbu commented 8 years ago

Similar to already handled issue #17.

With

 amsmath 2016/03/10 v2.15b AMS math features

one gets

/usr/local/texlive/2016/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.styPackage: lualatex-math 2015/09/22 v1.5 Patches for mathematics typesetting with LuaLaTeX
 (/usr/local/texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.styPackage: etoolbox 2015/08/02 v2.2a e-TeX tools for LaTeX (JAW)
)*************************************************
* lualatex-math warning: "wrong-meaning"
* 
* I've expected \newmcodes@ to have the meaning
* macro:->\mathcode `\'39\mathcode `\*42\mathcode `\."613A\ifnum \mathcode
* `\-=45 \else \mathchardef \std@minus \mathcode `\-\relax \fi \mathcode
* `\-45\mathcode `\/47\mathcode `\: "603A\relax ,
* but it has the meaning
* macro:->\mathcode `\'39\mathcode `\*42\mathcode `\."613A\ifnum \Umathcodenum
* `\-=45 \else \Umathcharnumdef \std@minus \Umathcodenum `\-\relax \fi
* \mathcode `\-45\mathcode `\/47\mathcode `\: "603A\relax .
*************************************************
)

change is surely already planned, just for the record.

phst commented 8 years ago

Thanks for reporting, I'll provide a fix (removing the patch for \newmcodes@).