moving gathered

This commit is contained in:
Ulrike Fischer 2025-02-01 01:15:22 +01:00
parent e1741b13d5
commit bdd3cd7480

View File

@ -58,8 +58,11 @@
\crcr \crcr
\ams@return@opt@arg \ams@return@opt@arg
} }
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
\renewcommand \gathered [1] [c] { {}
{
\PackageInfo{luamml}{patching~gathered}
\renewcommand \gathered [1] [c] {
\RIfM@ \RIfM@
\else \else
\nonmatherr@ { \begin {gathered} } \nonmatherr@ { \begin {gathered} }
@ -83,7 +86,8 @@
\hfil \hfil
\crcr \crcr
\ams@return@opt@arg \ams@return@opt@arg
} }
}
\cs_set:Npn \endaligned { \cs_set:Npn \endaligned {
\crcr \crcr
@ -257,9 +261,8 @@
\UseTaggingSocket{math/luamml/mtable/tag/save} \UseTaggingSocket{math/luamml/mtable/tag/save}
} }
} }
} % this handled in latex-lab through \common@align@ending
\cs_set:Npn \endalign {
\cs_set:Npn \endalign {
\math@cr \math@cr
\black@ \totwidth@ \black@ \totwidth@
\UseTaggingSocket{math/luamml/mtable/finalize} {align} \UseTaggingSocket{math/luamml/mtable/finalize} {align}
@ -273,6 +276,7 @@
$$ $$
\fi \fi
\ignorespacesafterend \ignorespacesafterend
}
} }
% For a more interesting one, let's consider multline: % For a more interesting one, let's consider multline: