Skip to content

Commit a1c7d70

Browse files
committed
define ifmeasuring@ only if it doesn't exist yet, issue latex3/tagging-project#920
1 parent 79db63c commit a1c7d70

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-20 Ulrike Fischer
2+
* hyperref.dtx: test if \ifmeasuring@ already exists, tagging-project issue #920
3+
14
2025-06-17 Ulrike Fischer
25
* hyperref.dtx: set the pdfa key automatically if an A-standard is
36
set in \DocumentMetadata. issue #387

hyperref.dtx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10460,8 +10460,12 @@
1046010460
% AMS\LaTeX\ processes all equations twice; we want to make sure
1046110461
% that the hyper stuff is not executed twice, so we use the AMS
1046210462
% |\ifmeasuring@|, initialized if AMS math is not used.
10463+
% change 2025-06-20: test if the switch already exist, see tagging-project issue 920.
1046310464
% \begin{macrocode}
10464-
\newif\ifmeasuring@\measuring@false
10465+
\ifcsname ifmeasuring@\endcsname
10466+
\else
10467+
\expandafter\newif\csname ifmeasuring@\endcsname\measuring@false
10468+
\fi
1046510469
\newcommand\Hy@ifnotmeasuring[1]{#1}
1046610470
\AddToHook{package/amsmath/after}
1046710471
{

0 commit comments

Comments
 (0)