move aligned commands to latex-lab
This commit is contained in:
parent
ece360295a
commit
cfeb408332
@ -7,60 +7,60 @@
|
||||
% But they are almost identical to the original and only
|
||||
% add luamml commands in appropriate places, so they would
|
||||
% mostly disappear if there were enough hooks in amsmath.
|
||||
|
||||
% aligned and friends
|
||||
\cs_set:Npn \start@aligned #1#2 {
|
||||
\RIfM@
|
||||
\else
|
||||
\nonmatherr@ { \begin { \@currenvir } }
|
||||
\fi
|
||||
\savecolumn@ % Assumption: called inside a group
|
||||
\UseTaggingSocket{ math/luamml/annotate/false } {}{ \alignedspace@left }
|
||||
\ams@start@box {#1} \bgroup
|
||||
\maxfields@ #2 \relax
|
||||
\ifnum \maxfields@ > \m@ne
|
||||
\multiply \maxfields@ \tw@
|
||||
\let \math@cr@@@ \math@cr@@@alignedat
|
||||
\alignsep@ \z@skip
|
||||
\else
|
||||
\let \math@cr@@@ \math@cr@@@aligned
|
||||
\alignsep@ \minalignsep
|
||||
\fi
|
||||
\Let@ \chardef \dspbrk@context \@ne
|
||||
\default@tag
|
||||
\spread@equation % no-op if already called
|
||||
\global \column@ \z@
|
||||
\ialign \bgroup
|
||||
& \column@plus
|
||||
\hfil
|
||||
\strut@
|
||||
$
|
||||
\m@th
|
||||
\displaystyle
|
||||
{##}
|
||||
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
|
||||
$
|
||||
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
|
||||
\tabskip \z@skip
|
||||
& \column@plus
|
||||
$
|
||||
\m@th
|
||||
\displaystyle
|
||||
{
|
||||
{}
|
||||
##
|
||||
}
|
||||
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
|
||||
$
|
||||
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
|
||||
\hfil
|
||||
\tabskip\alignsep@
|
||||
\crcr
|
||||
\ams@return@opt@arg
|
||||
}
|
||||
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
|
||||
{}
|
||||
{
|
||||
\PackageInfo{luamml}{patching~\string\start@aligned}
|
||||
% aligned and friends
|
||||
\cs_set:Npn \start@aligned #1#2 {
|
||||
\RIfM@
|
||||
\else
|
||||
\nonmatherr@ { \begin { \@currenvir } }
|
||||
\fi
|
||||
\savecolumn@ % Assumption: called inside a group
|
||||
\UseTaggingSocket{ math/luamml/annotate/false } {}{ \alignedspace@left }
|
||||
\ams@start@box {#1} \bgroup
|
||||
\maxfields@ #2 \relax
|
||||
\ifnum \maxfields@ > \m@ne
|
||||
\multiply \maxfields@ \tw@
|
||||
\let \math@cr@@@ \math@cr@@@alignedat
|
||||
\alignsep@ \z@skip
|
||||
\else
|
||||
\let \math@cr@@@ \math@cr@@@aligned
|
||||
\alignsep@ \minalignsep
|
||||
\fi
|
||||
\Let@ \chardef \dspbrk@context \@ne
|
||||
\default@tag
|
||||
\spread@equation % no-op if already called
|
||||
\global \column@ \z@
|
||||
\ialign \bgroup
|
||||
& \column@plus
|
||||
\hfil
|
||||
\strut@
|
||||
$
|
||||
\m@th
|
||||
\displaystyle
|
||||
{##}
|
||||
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
|
||||
$
|
||||
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
|
||||
\tabskip \z@skip
|
||||
& \column@plus
|
||||
$
|
||||
\m@th
|
||||
\displaystyle
|
||||
{
|
||||
{}
|
||||
##
|
||||
}
|
||||
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
|
||||
$
|
||||
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
|
||||
\hfil
|
||||
\tabskip\alignsep@
|
||||
\crcr
|
||||
\ams@return@opt@arg
|
||||
}
|
||||
\PackageInfo{luamml}{patching~gathered}
|
||||
\renewcommand \gathered [1] [c] {
|
||||
\RIfM@
|
||||
@ -87,16 +87,16 @@
|
||||
\crcr
|
||||
\ams@return@opt@arg
|
||||
}
|
||||
}
|
||||
|
||||
\cs_set:Npn \endaligned {
|
||||
\crcr
|
||||
\UseExpandableTaggingSocket{math/luamml/mtable/innertable/save}
|
||||
\egroup
|
||||
\restorecolumn@
|
||||
\egroup
|
||||
\UseTaggingSocket{math/luamml/mtable/innertable/finalize}
|
||||
}
|
||||
\PackageInfo{luamml}{patching~\string\endaligned}
|
||||
\cs_set:Npn \endaligned {
|
||||
\crcr
|
||||
\UseExpandableTaggingSocket{math/luamml/mtable/innertable/save}
|
||||
\egroup
|
||||
\restorecolumn@
|
||||
\egroup
|
||||
\UseTaggingSocket{math/luamml/mtable/innertable/finalize}
|
||||
}
|
||||
}
|
||||
|
||||
% gather
|
||||
\cs_set:Npn \gather@ #1 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user