[latex3-commits] [git/LaTeX3-latex3-latex2e] gh687: also add a definition for \@currentcounter to amsmath (f8243404)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Oct 15 11:02:29 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh687
Link       : https://github.com/latex3/latex2e/commit/f824340439694c8d19267a8307f70209e5007b44

>---------------------------------------------------------------

commit f824340439694c8d19267a8307f70209e5007b44
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Oct 15 11:02:29 2021 +0200

    also add a definition for \@currentcounter to amsmath


>---------------------------------------------------------------

f824340439694c8d19267a8307f70209e5007b44
 required/amsmath/amsmath.dtx | 10 ++++++++--
 required/amsmath/changes.txt |  7 ++++++-
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index eec51f50..a5cf333e 100644
--- a/required/amsmath/amsmath.dtx
+++ b/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 at tag\@empty
-\def\make at df@tag{\@ifstar\make at df@tag@@\make at df@tag@@@}
+\def\make at 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 at df@tag@@\make at df@tag@@@}
 %    \end{macrocode}
 %    \cs{make at df@tag} sets \cs{@currentlabel} and defines
 %    \cs{df at tag} appropriately.
diff --git a/required/amsmath/changes.txt b/required/amsmath/changes.txt
index a07a5cee..bb0bc90c 100644
--- a/required/amsmath/changes.txt
+++ b/required/amsmath/changes.txt
@@ -2,10 +2,15 @@
 All changes above are only part of the development branch for the next release.
 ================================================================================
 
+2021-10-15  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* amsmath.dtx (subsection{Implementing tags and labels}):
+	Explicitly set \@currentcounter (gh/687)
+
 2021-08-24 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
 	* amsmath.dtx (subsection{Implementing tags and labels}):
 	move \incr at eqnum inside the equation if fleqn isn't used and guard
-    it with a mathopen for better compability with hyperref, issue gh/652
+	it with a mathopen for better compability with hyperref (gh/652)
 
 #########################
 # 2021-06-01 Release





More information about the latex3-commits mailing list.