move smallmatrix patch

This commit is contained in:
Ulrike Fischer 2025-02-02 01:27:50 +01:00
parent cfeb408332
commit 3d4d7ecd22

View File

@ -359,7 +359,12 @@
% Finally some slightly different stuff. % Finally some slightly different stuff.
% While {matrix} is covered by {array}, we still have {smallmatrix}: % While {matrix} is covered by {array}, we still have {smallmatrix}:
\renewenvironment {smallmatrix} {
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
{}
{ \PackageInfo{luamml}{patching~smallmatrix}
\renewenvironment {smallmatrix} {
\UseTaggingSocket{ math/luamml/annotate/false } {} { \null\, } \UseTaggingSocket{ math/luamml/annotate/false } {} { \null\, }
\vcenter \bgroup \vcenter \bgroup
\Let@ \Let@
@ -392,14 +397,15 @@
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last} \UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
\hfil \hfil
\crcr \crcr
}{% }{%
\crcr \crcr
\UseExpandableTaggingSocket{math/luamml/mtable/smallmatrix/save} \UseExpandableTaggingSocket{math/luamml/mtable/smallmatrix/save}
\egroup \egroup
\egroup \egroup
\UseTaggingSocket{math/luamml/mtable/innertable/finalize} \UseTaggingSocket{math/luamml/mtable/innertable/finalize}
\UseTaggingSocket{ math/luamml/annotate/false } {}{ \, } \UseTaggingSocket{ math/luamml/annotate/false } {}{ \, }
} }
}
% {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 {