move align commands to latex-lab

This commit is contained in:
Ulrike Fischer 2025-02-04 01:09:22 +01:00
parent 36cfb020d2
commit 28d2b57997

View File

@ -164,88 +164,89 @@
$$ $$
\ignorespacesafterend \ignorespacesafterend
} }
}
% align and friends % align and friends
\cs_set:Npn \align@preamble { \PackageInfo{luamml}{patching~\string\align@preamble}
& \cs_set:Npn \align@preamble {
\hfil &
\strut@ \hfil
\setboxz@h { \strut@
\@lign \setboxz@h {
$ \@lign
\m@th $
\displaystyle \m@th
{##} \displaystyle
\ifmeasuring@ {##}
\luamml_ignore: \ifmeasuring@
\else \luamml_ignore:
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}} \else
\fi \UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
$ \fi
} $
\ifmeasuring@ }
\savefieldlength@ \ifmeasuring@
\else \savefieldlength@
\UseTaggingSocket{math/luamml/mtable/finalizecol}{box} \else
\fi \UseTaggingSocket{math/luamml/mtable/finalizecol}{box}
\set@field \fi
\tabskip\z@skip \set@field
& \tabskip\z@skip
\setboxz@h { &
\@lign \setboxz@h {
$ \@lign
\m@th $
\displaystyle \m@th
{ \displaystyle
{} {
## {}
} ##
\ifmeasuring@ }
\luamml_ignore: \ifmeasuring@
\else \luamml_ignore:
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}} \else
\fi \UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
$ \fi
} $
\ifmeasuring@ }
\savefieldlength@ \ifmeasuring@
\else \savefieldlength@
\UseTaggingSocket{math/luamml/mtable/finalizecol}{box} \else
\fi \UseTaggingSocket{math/luamml/mtable/finalizecol}{box}
\set@field \fi
\hfil \set@field
\tabskip\alignsep@ \hfil
\tabskip\alignsep@
}
\PackageInfo{luamml}{patching~\string\math@cr@@@align}
\cs_set:Npn \math@cr@@@align {
\ifst@rred
\nonumber
\fi
\if@eqnsw
\global \tag@true
\fi
\global \advance \row@ \@ne
\add@amps \maxfields@
\omit
\kern -\alignsep@
\iftag@
\setboxz@h {
\@lign
\strut@
{ \make@display@tag }
}
\place@tag
\UseTaggingSocket{math/luamml/mtable/tag/set}
\fi
\ifst@rred
\else
\global \@eqnswtrue
\fi
\global \lineht@ \z@
\cr
}
} }
\cs_set:Npn \math@cr@@@align {
\ifst@rred
\nonumber
\fi
\if@eqnsw
\global \tag@true
\fi
\global \advance \row@ \@ne
\add@amps \maxfields@
\omit
\kern -\alignsep@
\iftag@
\setboxz@h {
\@lign
\strut@
{ \make@display@tag }
}
\place@tag
\UseTaggingSocket{math/luamml/mtable/tag/set}
\fi
\ifst@rred
\else
\global \@eqnswtrue
\fi
\global \lineht@ \z@
\cr
}
% This was lost anyway, as the latex-lab code overwrites % This was lost anyway, as the latex-lab code overwrites
% the definition again. % the definition again.
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24} \IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}