[latex3-commits] [git/LaTeX3-latex3-latex2e] gh687: don't use refstepcounter with eqnarray (14a60fbd)
Frank Mittelbach
frank.mittelbach at latex-project.org
Fri Oct 15 00:38:59 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : gh687
Link : https://github.com/latex3/latex2e/commit/14a60fbd8a5eda9def09a6caa8886bd34ef06c4d
>---------------------------------------------------------------
commit 14a60fbd8a5eda9def09a6caa8886bd34ef06c4d
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Fri Oct 15 00:38:59 2021 +0200
don't use refstepcounter with eqnarray
>---------------------------------------------------------------
14a60fbd8a5eda9def09a6caa8886bd34ef06c4d
base/changes.txt | 4 +---
base/ltmath.dtx | 10 +++++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index aa7a8c36..f1032430 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -10,12 +10,10 @@ are not part of the distribution.
* ltfloat.dtx (subsection{Footnotes}):
* ltboxes.dtx (section{\LaTeX\ Box commands}):
+ * ltmath.dtx (two places}):
Explicitly set \@currentcounter when not automatically done
through \refstepcounter (gh/687)
- * ltmath.dtx (subsubsection{Flush left equations}):
- Use \refstepcounter to implicitly set \@currentcounter (gh/687)
-
2021-10-04 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* classes.dtx, doc.dtx, makeindx.dtx, preload.dtx, slides.dtx, array.dtx
diff --git a/base/ltmath.dtx b/base/ltmath.dtx
index 95e93961..59e0d89a 100644
--- a/base/ltmath.dtx
+++ b/base/ltmath.dtx
@@ -915,10 +915,13 @@
% whole display. Note that we can't use \cs{refstepcounter} as this
% results in |\@currentlabel| getting restored at the wrong and
% thus always writing the first label to the \texttt{.aux} file.
+% \changes{v1.2j}{2021/10/14}
+% {Explicitly set \cs{@currentcounter} (gh/687)}
% \begin{macrocode}
\def\eqnarray{%
\stepcounter{equation}%
\def\@currentlabel{\p at equation\theequation}%
+ \def\@currentcounter{equation}%
\global\@eqnswtrue
\m at th
\global\@eqcnt\z@
@@ -1232,11 +1235,12 @@
% \begin{environment}{eqnarray}
% The \textsf{eqnarray} environment
% \changes{v1.2j}{2021/10/14}
-% {Use \cs{refstepcounter} to implicitly
-% set \cs{@currentcounter} (gh/687)}
+% {Explicitly set \cs{@currentcounter} (gh/687)}
% \begin{macrocode}
\renewenvironment{eqnarray}{%
- \refstepcounter{equation}%
+ \stepcounter{equation}%
+ \def\@currentlabel{\p at equation\theequation}%
+ \def\@currentcounter{equation}%
\global\@eqnswtrue\m at th
\global\@eqcnt\z@
\tabskip\mathindent
More information about the latex3-commits
mailing list.