Skip to content

Commit

Permalink
Use \begingroup .. \endgroup instead of brace group in case this ever…
Browse files Browse the repository at this point in the history
… is executed in math
  • Loading branch information
FrankMittelbach committed Mar 8, 2018
1 parent 8593e7c commit 2241d6c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions base/ltcounts.dtx
Expand Up @@ -337,14 +337,16 @@
% \begin{macrocode}
\def\@removefromreset#1#2{%
\@ifundefined{c@#2}\relax
{{\expandafter\let\csname c@#1\endcsname\@removefromreset
\def\@elt##1{%
\expandafter\ifx\csname c@##1\endcsname\@removefromreset
\else
\noexpand\@elt{##1}%
\fi}%
\expandafter\xdef\csname cl@#2\endcsname
{\csname cl@#2\endcsname}}}}
{\begingroup
\expandafter\let\csname c@#1\endcsname\@removefromreset
\def\@elt##1{%
\expandafter\ifx\csname c@##1\endcsname\@removefromreset
\else
\noexpand\@elt{##1}%
\fi}%
\expandafter\xdef\csname cl@#2\endcsname
{\csname cl@#2\endcsname}%
\endgroup}}
% \end{macrocode}
% \end{macro}

Expand Down

0 comments on commit 2241d6c

Please sign in to comment.