moving gathered
This commit is contained in:
parent
e1741b13d5
commit
bdd3cd7480
@ -58,32 +58,36 @@
|
|||||||
\crcr
|
\crcr
|
||||||
\ams@return@opt@arg
|
\ams@return@opt@arg
|
||||||
}
|
}
|
||||||
|
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
|
||||||
\renewcommand \gathered [1] [c] {
|
{}
|
||||||
\RIfM@
|
{
|
||||||
\else
|
\PackageInfo{luamml}{patching~gathered}
|
||||||
\nonmatherr@ { \begin {gathered} }
|
\renewcommand \gathered [1] [c] {
|
||||||
\fi
|
\RIfM@
|
||||||
\UseTaggingSocket{ math/luamml/annotate/false } {}{ \alignedspace@left }
|
\else
|
||||||
\ams@start@box {#1} \bgroup
|
\nonmatherr@ { \begin {gathered} }
|
||||||
\Let@
|
\fi
|
||||||
\chardef \dspbrk@context \@ne
|
\UseTaggingSocket{ math/luamml/annotate/false } {}{ \alignedspace@left }
|
||||||
\restore@math@cr
|
\ams@start@box {#1} \bgroup
|
||||||
\spread@equation
|
\Let@
|
||||||
\ialign \bgroup
|
\chardef \dspbrk@context \@ne
|
||||||
\hfil
|
\restore@math@cr
|
||||||
\strut@
|
\spread@equation
|
||||||
$
|
\ialign \bgroup
|
||||||
\m@th
|
\hfil
|
||||||
\displaystyle
|
\strut@
|
||||||
##
|
$
|
||||||
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
|
\m@th
|
||||||
$
|
\displaystyle
|
||||||
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
|
##
|
||||||
\hfil
|
\UseTaggingSocket{math/luamml/save/nNn}{ {} \displaystyle {mtd}}
|
||||||
\crcr
|
$
|
||||||
\ams@return@opt@arg
|
\UseTaggingSocket{math/luamml/mtable/finalizecol}{last}
|
||||||
}
|
\hfil
|
||||||
|
\crcr
|
||||||
|
\ams@return@opt@arg
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
\cs_set:Npn \endaligned {
|
\cs_set:Npn \endaligned {
|
||||||
\crcr
|
\crcr
|
||||||
@ -257,22 +261,22 @@
|
|||||||
\UseTaggingSocket{math/luamml/mtable/tag/save}
|
\UseTaggingSocket{math/luamml/mtable/tag/save}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
% this handled in latex-lab through \common@align@ending
|
||||||
|
\cs_set:Npn \endalign {
|
||||||
\cs_set:Npn \endalign {
|
\math@cr
|
||||||
\math@cr
|
\black@ \totwidth@
|
||||||
\black@ \totwidth@
|
\UseTaggingSocket{math/luamml/mtable/finalize} {align}
|
||||||
\UseTaggingSocket{math/luamml/mtable/finalize} {align}
|
\egroup
|
||||||
\egroup
|
\ifingather@
|
||||||
\ifingather@
|
\restorealignstate@
|
||||||
\restorealignstate@
|
\egroup
|
||||||
\egroup
|
\nonumber
|
||||||
\nonumber
|
\ifnum0=`{\fi\iffalse}\fi
|
||||||
\ifnum0=`{\fi\iffalse}\fi
|
\else
|
||||||
\else
|
$$
|
||||||
$$
|
\fi
|
||||||
\fi
|
\ignorespacesafterend
|
||||||
\ignorespacesafterend
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% For a more interesting one, let's consider multline:
|
% For a more interesting one, let's consider multline:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user