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