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