move aligned commands to latex-lab

This commit is contained in:
Ulrike Fischer 2025-02-02 00:49:24 +01:00
parent ece360295a
commit cfeb408332

View File

@ -7,9 +7,12 @@
% But they are almost identical to the original and only % But they are almost identical to the original and only
% add luamml commands in appropriate places, so they would % add luamml commands in appropriate places, so they would
% mostly disappear if there were enough hooks in amsmath. % mostly disappear if there were enough hooks in amsmath.
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
% aligned and friends {}
\cs_set:Npn \start@aligned #1#2 { {
\PackageInfo{luamml}{patching~\string\start@aligned}
% aligned and friends
\cs_set:Npn \start@aligned #1#2 {
\RIfM@ \RIfM@
\else \else
\nonmatherr@ { \begin { \@currenvir } } \nonmatherr@ { \begin { \@currenvir } }
@ -57,10 +60,7 @@
\tabskip\alignsep@ \tabskip\alignsep@
\crcr \crcr
\ams@return@opt@arg \ams@return@opt@arg
} }
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
{}
{
\PackageInfo{luamml}{patching~gathered} \PackageInfo{luamml}{patching~gathered}
\renewcommand \gathered [1] [c] { \renewcommand \gathered [1] [c] {
\RIfM@ \RIfM@
@ -87,16 +87,16 @@
\crcr \crcr
\ams@return@opt@arg \ams@return@opt@arg
} }
} \PackageInfo{luamml}{patching~\string\endaligned}
\cs_set:Npn \endaligned {
\cs_set:Npn \endaligned {
\crcr \crcr
\UseExpandableTaggingSocket{math/luamml/mtable/innertable/save} \UseExpandableTaggingSocket{math/luamml/mtable/innertable/save}
\egroup \egroup
\restorecolumn@ \restorecolumn@
\egroup \egroup
\UseTaggingSocket{math/luamml/mtable/innertable/finalize} \UseTaggingSocket{math/luamml/mtable/innertable/finalize}
} }
}
% gather % gather
\cs_set:Npn \gather@ #1 { \cs_set:Npn \gather@ #1 {