move gather commands to latex-lab

This commit is contained in:
Ulrike Fischer 2025-02-02 20:41:23 +01:00
parent 3d4d7ecd22
commit 5c8cf1b013

View File

@ -96,9 +96,7 @@
\egroup \egroup
\UseTaggingSocket{math/luamml/mtable/innertable/finalize} \UseTaggingSocket{math/luamml/mtable/innertable/finalize}
} }
} \PackageInfo{luamml}{patching~\string\gather@}
% gather
\cs_set:Npn \gather@ #1 { \cs_set:Npn \gather@ #1 {
\ingather@true \ingather@true
\let \split \insplit@ \let \split \insplit@
@ -146,7 +144,8 @@
\crcr \crcr
#1 #1
} }
% in latex lab, add the luamml_ignore to \measuring@true instead.
\PackageInfo{luamml}{patching~\string\gmeasure@}
\cs_new_eq:NN \__luamml_amsmath_original_gmeasure:n \gmeasure@ \cs_new_eq:NN \__luamml_amsmath_original_gmeasure:n \gmeasure@
\cs_set:Npn \gmeasure@ #1 { \cs_set:Npn \gmeasure@ #1 {
\exp_last_unbraced:Nno \exp_last_unbraced:Nno
@ -154,9 +153,9 @@
{ \luamml_ignore: } { \luamml_ignore: }
{ \__luamml_amsmath_original_gmeasure:n {#1} } { \__luamml_amsmath_original_gmeasure:n {#1} }
} }
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
{}
{ \PackageInfo{luamml}{patching~\string\endgather} \PackageInfo{luamml}{patching~\string\endgather}
\cs_set:Npn \endgather { \cs_set:Npn \endgather {
\math@cr \math@cr
\black@ \totwidth@ \black@ \totwidth@