在下面显示的我的 MNWE 示例中:
\documentclass{scrbook}
\usepackage{mathtools}
\usepackage{unicode-math}
% \usepackage{lualatex-math}
\begin{document}
Foo.
\end{document}
笔记:我发现了类似的问题xelatex 中的 mathtools 和 unicode-math 不兼容?,但这是 4 年前的话题了,而且我也不明白。
Lualatex 编译器输出:
("C:/Users/z0037rdx/AppData/Local/Programs/MiKTeX 2.9/tex/lualatex/lualatex-mat
h/lualatex-math.sty"
**Package: lualatex-math 2020/09/25 v1.9** Patches for mathematics typesetting with
LuaLaTeX
("C:/Users/z0037rdx/AppData/Local/Programs/MiKTeX 2.9/tex/latex/etoolbox/etoolb
ox.sty"
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count279
)
Lua module: lualatex-math 2013/08/03 1.3 Patches for mathematics typesetting wit
h LuaLaTeX
Package lualatex-math Warning: I've expected \MT_cramped_internal:Nn to have
(lualatex-math) the meaning
(lualatex-math) macro:#1#2->\sbox \z@ {$\m@th
(lualatex-math) #1\nulldelimiterspace =\z@ \radical \z@
(lualatex-math) {#2}$}\ifx #1\displaystyle \dimen@ =\fontdimen
(lualatex-math) 8\textfont 3\advance \dimen@ .25\fontdimen
(lualatex-math) 5\textfont 2\else \dimen@ =1.25\fontdimen 8\ifx
(lualatex-math) #1\textstyle \textfont \else \ifx
(lualatex-math) #1\scriptstyle \scriptfont \else
(lualatex-math) \scriptscriptfont \fi \fi 3\fi \advance \dimen@
(lualatex-math) -\ht \z@ \ht \z@ =-\dimen@ \box \z@ ,
(lualatex-math) but it has the meaning
(lualatex-math) macro:#1#2->{\ensuremath {\use:c
(lualatex-math) {cramped\cs_to_str:N #1}#2}}.