phst / lualatex-math

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

More Warnings #23

Closed PlayfulPan closed 2 years ago

PlayfulPan commented 3 years ago

Hello,

LuaLaTeX math gives the following warning when used with the mathtools package.

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

)

It appears that mathtools incorporates the patch LuaLaTeX-math is trying to perform, so I think it is safe to simply remove the patch being applied to \MT_cramped_internal:Nn from lualatex-math.

It's just a warning and it doesn't really affect anything, but it is a bit annoying and the fix appears to be pretty easy.

PlayfulPan commented 3 years ago

Actually, it appears that this issue is fixed in version 1.10, so sorry for the false alarm.

I would request however that you update the package on CTAN if not too much effort since that is still version 1.9.

Thanks!

phst commented 3 years ago

Hmm, I thought I had already done that, but apparently not. Should be done now.

phst commented 3 years ago

Do you still see these warnings with version 1.11?

qoheniac commented 2 years ago

With version 1.11 I don't see these warnings anymore.

phst commented 2 years ago

OK, I'm closing this issue then.