From d8b81c54ee53a93b7f939601fd6438d0f194978b Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 22 Oct 2021 03:01:42 +0000
Subject: CTAN sync 202110220301

---
 macros/latex-dev/required/amsmath/amsmath.dtx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'macros/latex-dev/required/amsmath/amsmath.dtx')

diff --git a/macros/latex-dev/required/amsmath/amsmath.dtx b/macros/latex-dev/required/amsmath/amsmath.dtx
index eec51f50cb..a5cf333e79 100644
--- a/macros/latex-dev/required/amsmath/amsmath.dtx
+++ b/macros/latex-dev/required/amsmath/amsmath.dtx
@@ -86,7 +86,7 @@ Bug reports can be opened (category \texttt{#1}) at\\%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\ProvidesPackage{amsmath}[2021/08/28 v2.17k AMS math features]
+\ProvidesPackage{amsmath}[2021/10/15 v2.17l AMS math features]
 %    \end{macrocode}
 %
 % \section{Catcode defenses}
@@ -3012,7 +3012,13 @@ ill-advised in LaTeX.%
 %    the \cs{maketag@@} macro above.
 %    \begin{macrocode}
 \let\df@tag\@empty
-\def\make@df@tag{\@ifstar\make@df@tag@@\make@df@tag@@@}
+\def\make@df@tag{%
+%    \end{macrocode}
+%    We set \cs{@currentcounter} here so that it applies to both branches.
+%\changes{v2.17l}{2021/10/15}{Explicitly set \cs{@currentcounter} (gh/687)}
+%    \begin{macrocode}
+  \def\@currentcounter{equation}%
+  \@ifstar\make@df@tag@@\make@df@tag@@@}
 %    \end{macrocode}
 %    \cs{make@df@tag} sets \cs{@currentlabel} and defines
 %    \cs{df@tag} appropriately.
-- 
cgit v1.2.3

