[lltx] LuaLaTeX and amsmath

Reinhard Kotucha reinhard.kotucha at web.de
Fri Dec 28 00:34:24 CET 2012


On 2012-12-27 at 10:31:25 +0100, Philipp Stephani wrote:

 > 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.

Hi Philipp, 
thank you very much for the fast response and the patch.  Works like a
charm now.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the lualatex-dev mailing list