finish moving multline

This commit is contained in:
Ulrike Fischer 2025-02-07 16:30:15 +01:00
parent 29212f284c
commit 11ed5ffcbe

View File

@ -302,20 +302,18 @@
{ \luamml_ignore: }
{ \__luamml_amsmath_original_mmeasure:n {#1} }
}
} % end package test
% Luckily, {multline} uses \endmultline@math in exactly
% the spot where we have to set the flag.
% Less luckily, \endmultline@math sometimes get overwritten for the last line.
% But that isn't a problem since we want special behavior there anyway.
\cs_set:Npn \endmultline@math {
\PackageInfo{luamml}{patching~\string\endmultline@math}
\cs_set:Npn \endmultline@math {
\UseTaggingSocket{math/luamml/save/nNn}{{} \displaystyle {mtd}}
$
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
}
\cs_set:Npn \rendmultline@ {
}
\PackageInfo{luamml}{patching~\string\rendmultline@}
\cs_set:Npn \rendmultline@ {
\iftag@
\UseTaggingSocket{math/luamml/save/nNn}{{} \displaystyle {mtd}}
$
@ -349,9 +347,9 @@
\UseExpandableTaggingSocket {math/luamml/mtable/finalize} {multline}
\egroup
$$
}
\cs_set:Npn \lendmultline@ {
}
\PackageInfo{luamml}{patching~\string\lendmultline@}
\cs_set:Npn \lendmultline@ {
\hfilneg
\hskip\multlinegap
\math@cr
@ -359,15 +357,9 @@
%\__luamml_amsmath_finalize_table:n {multline}
\egroup
$$
}
% Finally some slightly different stuff.
% While {matrix} is covered by {array}, we still have {smallmatrix}:
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
{}
{ \PackageInfo{luamml}{patching~smallmatrix}
}
\PackageInfo{luamml}{patching~smallmatrix}
\renewenvironment {smallmatrix} {
\UseTaggingSocket{ math/luamml/annotate/false } {} { \null\, }
\vcenter \bgroup
@ -409,7 +401,7 @@
\UseTaggingSocket{math/luamml/mtable/innertable/finalize}
\UseTaggingSocket{math/luamml/annotate/false} {}{ \, }
}
}
} %end package test
% {cases} is defined by the kernel, but we patch the overwritten version by amsmath.
\cs_set:Npn \env@cases {