2025-02-21 13:24:23 +01:00
|
|
|
\ProvidesExplPackage {luamml-patches-lab-math} {2025-02-21} {0.4.0}
|
2024-07-16 09:11:07 +02:00
|
|
|
{Feel free to add a description here}
|
|
|
|
|
2025-01-24 14:46:28 +01:00
|
|
|
% This definition is identical to the one in latex-lab-math.
|
2025-01-23 18:44:57 +01:00
|
|
|
% The redefinition and the whole patch file can be removed in 2025-06-01
|
2025-01-24 14:46:28 +01:00
|
|
|
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
|
|
|
|
{}
|
|
|
|
{
|
|
|
|
\AddToHook{begindocument} {
|
|
|
|
\PackageInfo{luamml}{patching~\string\common@align@ending}
|
2024-07-16 09:11:07 +02:00
|
|
|
\cs_set:Npn \common@align@ending {
|
|
|
|
\math@cr
|
|
|
|
\black@ \totwidth@
|
2025-01-23 18:44:57 +01:00
|
|
|
\UseExpandableTaggingSocket{math/luamml/mtable/finalize}{align}
|
2024-07-16 09:11:07 +02:00
|
|
|
\egroup
|
|
|
|
\ifingather@
|
|
|
|
\restorealignstate@
|
|
|
|
\egroup
|
|
|
|
\nonumber
|
|
|
|
\ifnum0=`{\fi\iffalse}\fi
|
|
|
|
\else
|
|
|
|
$$
|
|
|
|
\fi
|
|
|
|
\ignorespacesafterend
|
2025-01-24 14:46:28 +01:00
|
|
|
}
|
2024-07-16 09:11:07 +02:00
|
|
|
}
|
|
|
|
}
|