[latex3-commits] [git/LaTeX3-latex3-latex2e] counterwithin: Mention \counterwithin in the amsmath documentation. (28104b08)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jul 8 23:56:42 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : counterwithin
Link       : https://github.com/latex3/latex2e/commit/28104b08597ccf4413b6b9ea26461c7b113d85c3

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

commit 28104b08597ccf4413b6b9ea26461c7b113d85c3
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jul 8 23:56:42 2021 +0200

    Mention \counterwithin in the amsmath documentation.


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

28104b08597ccf4413b6b9ea26461c7b113d85c3
 required/amsmath/amsmath.dtx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index 88578611..4300dded 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/04/20 v2.17j AMS math features]
+\ProvidesPackage{amsmath}[2021/07/08 v2.17j AMS math features]
 %    \end{macrocode}
 %
 % \section{Catcode defenses}
@@ -2627,7 +2627,9 @@ ill-advised in LaTeX.%
 %
 %    \begin{macro}{\numberwithin}
 %    Provide a convenient way to specify that equations should be
-%    numbered within sections.
+%    numbered within sections. The \LaTeX{} kernel contains a similar command
+%    \cs{counterwithin} (with a slightly extended syntax) that can be used
+%    as a drop-in replacement for \cs{numberwithin}.
 %    \begin{macrocode}
 \newcommand{\numberwithin}[3][\arabic]{%
   \@ifundefined{c@#2}{\@nocounterr{#2}}{%





More information about the latex3-commits mailing list.