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,10 +96,8 @@
\egroup \egroup
\UseTaggingSocket{math/luamml/mtable/innertable/finalize} \UseTaggingSocket{math/luamml/mtable/innertable/finalize}
} }
} \PackageInfo{luamml}{patching~\string\gather@}
\cs_set:Npn \gather@ #1 {
% gather
\cs_set:Npn \gather@ #1 {
\ingather@true \ingather@true
\let \split \insplit@ \let \split \insplit@
\let \tag \tag@in@align \let \tag \tag@in@align
@ -145,18 +143,19 @@
\span \fi \span \fi
\crcr \crcr
#1 #1
} }
% in latex lab, add the luamml_ignore to \measuring@true instead.
\cs_new_eq:NN \__luamml_amsmath_original_gmeasure:n \gmeasure@ \PackageInfo{luamml}{patching~\string\gmeasure@}
\cs_set:Npn \gmeasure@ #1 { \cs_new_eq:NN \__luamml_amsmath_original_gmeasure:n \gmeasure@
\cs_set:Npn \gmeasure@ #1 {
\exp_last_unbraced:Nno \exp_last_unbraced:Nno
\use_ii_i:nn \use_ii_i:nn
{ \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@