[lltx] LuaLaTeX and amsmath

Reinhard Kotucha reinhard.kotucha at web.de
Thu Dec 27 02:04:38 CET 2012


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?

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