phst / lualatex-math

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

Warnings since LaTeX release 2020/10/01 #22

Open dbitouze opened 3 years ago

dbitouze commented 3 years ago

Since LaTeX release 2020/10/01, some lualatex-math warnings suddenly appeared. For instance:

\documentclass{article}
\usepackage{lualatex-math}
\begin{document}
Foo.
\end{document}

gives:

Package lualatex-math Warning: I've expected \frac to have the meaning
(lualatex-math)                macro:#1#2->{\begingroup #1\endgroup \over #2},
(lualatex-math)                but it has the meaning
(lualatex-math)                macro:->\protect \frac  .

Extra ones (and not the same about \frac) appeared with unicode-math:

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
Foo.
\end{document}

leading to:

Package lualatex-math Warning: I've expected \subarray to have the meaning
(lualatex-math)                \long macro:#1->\vcenter \bgroup \Let@
(lualatex-math)                \restore@math@cr \default@tag \baselineskip
(lualatex-math)                \fontdimen 10 \scriptfont \tw@ \advance
(lualatex-math)                \baselineskip \fontdimen 12 \scriptfont \tw@
(lualatex-math)                \lineskip \thr@@ \fontdimen 8 \scriptfont
(lualatex-math)                \thr@@ \lineskiplimit \lineskip \ialign \bgroup
(lualatex-math)                \ifx c#1\hfil \fi $\m@th \scriptstyle ##$\hfil
(lualatex-math)                \crcr ,
(lualatex-math)                but it has the meaning
(lualatex-math)                \long macro:#1->\vcenter \bgroup \Let@
(lualatex-math)                \restore@math@cr \default@tag \baselineskip
(lualatex-math)                \Umathstacknumup \scriptstyle \advance
(lualatex-math)                \baselineskip \Umathstackdenomdown \scriptstyle
(lualatex-math)                \lineskip \Umathstackvgap \scriptstyle
(lualatex-math)                \lineskiplimit \lineskip \ialign \bgroup \ifx
(lualatex-math)                c#1\hfil \fi \Ustartmath \m@th \scriptstyle ##
(lualatex-math)                \Ustopmath \hfil \crcr .

Package lualatex-math Warning: I've expected \frac  to have the meaning
(lualatex-math)                \long macro:#1#2->{\begingroup #1\endgroup
(lualatex-math)                \@@over #2},
(lualatex-math)                but it has the meaning
(lualatex-math)                \long macro:#1#2->{\Ustack {\begingroup
(lualatex-math)                #1\endgroup \@@over #2}}.

Package lualatex-math Warning: I've expected \genfrac  to have the meaning
(lualatex-math)                \long macro:#1#2#3#4#5#6->{\@mathstyle
(lualatex-math)                {#4}\genfrac@choice o{#1}{\begingroup
(lualatex-math)                #5\endgroup \ifx @#3@\@@over \else \@@above \fi
(lualatex-math)                #3\relax #6}\genfrac@choice c{#2}},
(lualatex-math)                but it has the meaning
(lualatex-math)                \long macro:#1#2#3#4#5#6->{\@mathstyle
(lualatex-math)                {#4}\genfrac@choice o{#1}{\Ustack {\begingroup
(lualatex-math)                #5\endgroup \ifx @#3@\@@over \else \@@above \fi
(lualatex-math)                #3\relax #6}}\genfrac@choice c{#2}}.
davidcarlisle commented 3 years ago

Most (all?) of the patches done by the package have been incorporated directly into amsmath or unicode-math so the patches aren't needed so the warnings that they are not applied is correct but harmless.

Once things settle down a bit lualatex-math should probably silently does nothing in most cases. (There may be a few additional things it needs to do for compatibility)

u-fischer commented 3 years ago

the development version of lualatex-math already avoids the warnings. It only needs to be uploaded to ctan.

phst commented 3 years ago

the development version of lualatex-math already avoids the warnings. It only needs to be uploaded to ctan.

I've now done that.

Most (all?) of the patches done by the package have been incorporated directly into amsmath or unicode-math so the patches aren't needed so the warnings that they are not applied is correct but harmless.

Yep, I plan to remove most of the patches that are no longer needed over time.