[lltx] LuaLaTeX and amsmath

Philipp Stephani p.stephani2 at gmail.com
Thu Dec 27 10:31:25 CET 2012


2012/12/27 Reinhard Kotucha <reinhard.kotucha at web.de>

> Hi,
> when compiling the file
>
> ---------------------------------------------
> \documentclass{article}
> \RequirePackage{fontspec}
> \setmainfont{TeX Gyre Pagella}
> \RequirePackage{unicode-math}
> \setmathfont[vargreek-shape=unicode,
>              math-style=TeX,
>              bold-style=TeX,]
>              {texgyrepagellamath-regular.otf}
>
> \RequirePackage{amsmath}
> \stop
> ---------------------------------------------
>
> I get:
>
> | (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amstext.sty
> | (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsgen.sty))
> | (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsbsy.sty)
> | (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsopn.sty)
> | *************************************************
> | * 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 at minus \mathcode `\-\relax \fi \mathcode
> | * `\-45\mathcode `\/47\mathcode `\:"603A\relax ,
> | * but it has the meaning
> | * \long macro:->\mathcode `\'39\scan_stop: \mathcode `\*42\scan_stop:
> | * \mathcode `\."613A\scan_stop: \mathcode `\-45\scan_stop: \mathcode
> | * `\/47\scan_stop: \mathcode `\:"603A\scan_stop: .
> | *************************************************
> |
> | ! LaTeX Error: Command \dddot already defined.
> |                Or name \end... illegal, see p.192 of the manual.
> |
> | See the LaTeX manual or LaTeX Companion for explanation.
> | Type  H <return>  for immediate help.
> |  ...
> |
> | l.571    \hbox{\normalfont ...}\vss}}}}
>
> It works like charm if I disable the amsmath package.  What am I doing
> wrong?
>
>
Sorry about that. Both unicode-math and lualatex-math contain a fix for the
same amsopn issue; when I added the fix to lualatex-math, I forgot to adapt
unicode-math. I should be able to come up with a fix easily (but with this
combination the warning is not harmful).
The error about \dddot is weirder. Try loading amsmath before unicode-math.
In general I want to allow loading of amsmath after unicode-math, but right
now there still seem to be a few issues.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20121227/33bd007b/attachment.html>


More information about the lualatex-dev mailing list