Skip to content

Commit

Permalink
guard refstepcounter with mathopen, issue #652
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Aug 24, 2021
1 parent a41c74e commit fba85ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions required/amsmath/amsmath.dtx
Expand Up @@ -86,7 +86,7 @@ Bug reports can be opened (category \texttt{#1}) at\\%
% \end{macrocode}
%
% \begin{macrocode}
\ProvidesPackage{amsmath}[2021/07/08 v2.17j AMS math features]
\ProvidesPackage{amsmath}[2021/08/24 v2.17k AMS math features]
% \end{macrocode}
%
% \section{Catcode defenses}
Expand Down Expand Up @@ -3194,10 +3194,11 @@ ill-advised in LaTeX.%
\global\@eqnswfalse
}
% \end{macrocode}
%
%\changes{v2.17k}{2021/08/24}{Guard the refstepcounter with a mathopen for better
% compability with hyperref, issue gh/652}
% \begin{macrocode}
\def\print@eqnum{\tagform@\theequation}
\def\incr@eqnum{\refstepcounter{equation}\let\incr@eqnum\@empty}
\def\incr@eqnum{\refstepcounter{equation}\ifmmode\mathopen{}\fi\let\incr@eqnum\@empty}
% \end{macrocode}
% \end{macro}
%
Expand Down
5 changes: 5 additions & 0 deletions required/amsmath/changes.txt
Expand Up @@ -2,6 +2,11 @@
All changes above are only part of the development branch for the next release.
================================================================================

2021-08-24 Ulrike Fischer <Ulrike.Fischer@latex-project.org>
* amsmath.dtx (subsection{Implementing tags and labels}):
Guard the refstepcounter in \incr@eqnum with a mathopen for better
compability with hyperref, issue gh/652

#########################
# 2021-06-01 Release
#########################
Expand Down

0 comments on commit fba85ee

Please sign in to comment.