[latex3-commits] [latex3/hyperref] develop, main: fix ifmeasuring@ for the caption package (8c7758a)
github at latex-project.org
github at latex-project.org
Sun Jun 25 16:20:10 CEST 2023
Repository : https://github.com/latex3/hyperref
On branches: develop,main
Link : https://github.com/latex3/hyperref/commit/8c7758a4bc6e5631d0c4ebe62ba6eef591b40d8c
>---------------------------------------------------------------
commit 8c7758a4bc6e5631d0c4ebe62ba6eef591b40d8c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Jun 25 16:20:10 2023 +0200
fix ifmeasuring@ for the caption package
>---------------------------------------------------------------
8c7758a4bc6e5631d0c4ebe62ba6eef591b40d8c
ChangeLog.txt | 3 +++
README.md | 2 +-
doc/hyperref-doc.tex | 2 +-
hluatex.dtx | 4 ++--
hyperref-linktarget.dtx | 2 +-
hyperref-patches.dtx | 2 +-
hyperref.dtx | 3 ++-
hyperref.tds.zip | Bin 4476083 -> 4389307 bytes
testfiles-pdftex/ifmeasuring-caption.lvt | 13 +++++++++++++
testfiles-pdftex/ifmeasuring-caption.tlg | 5 +++++
xr-hyper.sty | 2 +-
11 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 1bfc338..0c9421d 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,6 @@
+2023-06-25 Ulrike Fischer
+ * define the amsmath \ifmeasuring@ always as external package depend on hyperref doing it.
+
2023-06-18 Ulrike Fischer
* changed various patches for amsmath to make them independent of loading order.
* nameref: check the definition of label and reinstate the kernel definition if it has been changed.
diff --git a/README.md b/README.md
index ed9acbb..013d3d8 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# README for hyperref bundle
-Version 2023-06-18 v7.00z
+Version 2023-06-25 v7.01a
## INTRODUCTION
diff --git a/doc/hyperref-doc.tex b/doc/hyperref-doc.tex
index 39e3c79..12f5533 100644
--- a/doc/hyperref-doc.tex
+++ b/doc/hyperref-doc.tex
@@ -166,7 +166,7 @@
}
\makeatother
\title{Hypertext marks in \hologo{LaTeX}: a manual for \xpackage{hyperref}}
-\date{2023-06-18 v7.00z}
+\date{2023-06-25 v7.01a}
\begin{document}
diff --git a/hluatex.dtx b/hluatex.dtx
index ec5140c..ceb34a2 100644
--- a/hluatex.dtx
+++ b/hluatex.dtx
@@ -1,6 +1,6 @@
% \iffalse
% Source File: hluatex.dtx
-% 2023-06-18 v7.00z
+% 2023-06-25 v7.01a
%
% Copyright
% 2016-2019 Oberdiek Package Support Group
@@ -31,7 +31,7 @@
%
% \begin{macrocode}
%<*luatex>
-%% 2023-06-18 v7.00z
+%% 2023-06-25 v7.01a
%% force unicode encoding, see issue #101
%% code mostly copied from hxetex.def
\HyPsd at LoadUnicode
diff --git a/hyperref-linktarget.dtx b/hyperref-linktarget.dtx
index 73a0998..ebb0c12 100644
--- a/hyperref-linktarget.dtx
+++ b/hyperref-linktarget.dtx
@@ -53,7 +53,7 @@
% }^^A
% }
%
-% \date{Version 2023-06-18 v7.00z}
+% \date{Version 2023-06-25 v7.01a}
%
% \maketitle
% \begin{documentation}
diff --git a/hyperref-patches.dtx b/hyperref-patches.dtx
index 0f34d87..34fee79 100644
--- a/hyperref-patches.dtx
+++ b/hyperref-patches.dtx
@@ -55,7 +55,7 @@
% }^^A
% }
%
-% \date{Version 2023-06-18 v7.00z}
+% \date{Version 2023-06-25 v7.01a}
%
% \maketitle
% \begin{documentation}
diff --git a/hyperref.dtx b/hyperref.dtx
index 944821d..0549c93 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -51,7 +51,7 @@
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
%<psdextra>\ProvidesFile{psdextra.def}
-%<!none&!packageEnd> [2023-06-18 v7.00z %
+%<!none&!packageEnd> [2023-06-25 v7.01a %
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -10416,6 +10416,7 @@
% that the hyper stuff is not executed twice, so we use the AMS
% |\ifmeasuring@|, initialized if AMS math is not used.
% \begin{macrocode}
+\newif\ifmeasuring@\measuring at false
\newcommand\Hy at ifnotmeasuring[1]{#1}
\AddToHook{package/amsmath/after}
{
diff --git a/hyperref.tds.zip b/hyperref.tds.zip
index 6bb5550..966334d 100644
Binary files a/hyperref.tds.zip and b/hyperref.tds.zip differ
diff --git a/testfiles-pdftex/ifmeasuring-caption.lvt b/testfiles-pdftex/ifmeasuring-caption.lvt
new file mode 100644
index 0000000..5728625
--- /dev/null
+++ b/testfiles-pdftex/ifmeasuring-caption.lvt
@@ -0,0 +1,13 @@
+\documentclass{article}
+\input{regression-test}
+
+\usepackage{caption}
+\usepackage{hyperref}
+\begin{document}
+\START
+\begin{figure}
+
+\caption{abc}
+\end{figure}
+\end{document}
+
diff --git a/testfiles-pdftex/ifmeasuring-caption.tlg b/testfiles-pdftex/ifmeasuring-caption.tlg
new file mode 100644
index 0000000..6ca8a03
--- /dev/null
+++ b/testfiles-pdftex/ifmeasuring-caption.tlg
@@ -0,0 +1,5 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+[1] (ifmeasuring-caption.aux)
+Package rerunfilecheck Info: File `ifmeasuring-caption.out' has not changed.
+(rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
diff --git a/xr-hyper.sty b/xr-hyper.sty
index df7df95..d470b4b 100644
--- a/xr-hyper.sty
+++ b/xr-hyper.sty
@@ -57,7 +57,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xr-hyper}
- [2023-06-18 v7.00z eXternal References (DPC)]
+ [2023-06-25 v7.01a eXternal References (DPC)]
\def\externaldocument{\@testopt\XR at cite{}}
\let\externalcitedocument\externaldocument
More information about the latex3-commits
mailing list.