Skip to content

Commit

Permalink
repair gather*
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Feb 2, 2025
1 parent 6b7095d commit f36607f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
22 changes: 20 additions & 2 deletions required/latex-lab/latex-lab-amsmath.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}
% \end{macrocode}
%
% \subsubsection{gather}
% \subsubsection{\texttt{gather} and \texttt{gather*}}
%
% \begin{macrocode}
\def\gather@#1{%
Expand Down Expand Up @@ -154,8 +154,26 @@
\egroup
$$
\ignorespacesafterend
}
}
% \end{macrocode}
%
% \begin{macrocode}
\renewenvironment{gather*}
{%
\start@gather\st@rredtrue
}
{
\math@cr
\black@\totwidth@
\UseExpandableTaggingSocket{math/luamml/mtable/finalize} {gather}
\egroup
$$\ignorespacesafterend
}
% \end{macrocode}
% Register both environments
% \begin{macrocode}
\math_register_halign_env:nn {gather}{}
\math_register_halign_env:nn {gather*}{}
% \end{macrocode}
%
%
Expand Down
11 changes: 0 additions & 11 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2704,16 +2704,6 @@
% \begin{macrocode}
\tl_gput_right:Nn \@kernel@before@begindocument {
%
\renewenvironment{gather*}{%
\start@gather\st@rredtrue
}
{%
% this redirection doesn't work if we alter "gather"!
% \endgather
% so replace it with its real meaning
\math@cr \black@\totwidth@ \egroup
$$\ignorespacesafterend
}
% \end{macrocode}
%
% \begin{macrocode}
Expand Down Expand Up @@ -2797,7 +2787,6 @@
\math_register_halign_env:nn {alignat*}{}
\math_register_halign_env:nn {flalign}{}
\math_register_halign_env:nn {flalign*}{}
\math_register_halign_env:nn {gather*}{}
\math_register_halign_env:nn {multline}{}
\math_register_halign_env:nn {multline*}{}
\math_register_halign_env:nn {xalignat}{}
Expand Down

0 comments on commit f36607f

Please sign in to comment.