phst / lualatex-math

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

Error when used with amsmath, but without unicode-math #8

Closed Caramdir closed 10 years ago

Caramdir commented 11 years ago

The document

\documentclass{article}
\usepackage{amsmath}
\usepackage{lualatex-math}
\begin{document}
$abc$
\end{document}

produces the following error message in TL2013 (pretest):

! LuaTeX error .../texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua:46: a
ttempt to call upvalue 'unpack' (a nil value)
stack traceback:
    .../texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua:46: in function 'pr
int_class_fam_slot'
    [string "\directlua "]:1: in main chunk.
\__lltxmath_set_mathchar:NN ...\int_eval:n {`#2})}
                                                  \scan_stop: 
l.4 \begin
        {document}

The error doesn't show when I add \usepackage{unicode-math} before the inclusion of lualatex-math, but persists when unicode-math is loaded afterwards.