[latex3-commits] [latex3/hyperref] develop: hide \deferred at thm@head so that it can be patch if - is active, issue #324 (c28bf97)

github at latex-project.org github at latex-project.org
Sat Jan 20 19:33:37 CET 2024


Repository : https://github.com/latex3/hyperref
On branch  : develop
Link       : https://github.com/latex3/hyperref/commit/c28bf971ecfd484c136c2677cd673b9f24c2871e

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

commit c28bf971ecfd484c136c2677cd673b9f24c2871e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jan 20 19:33:37 2024 +0100

    hide \deferred at thm@head so that it can be patch if - is active, issue #324


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

c28bf971ecfd484c136c2677cd673b9f24c2871e
 hyperref.dtx                     |  2 ++
 testfiles/gh324-amsthm-patch.lvt | 14 ++++++++++++++
 testfiles/gh324-amsthm-patch.tlg |  6 ++++++
 3 files changed, 22 insertions(+)

diff --git a/hyperref.dtx b/hyperref.dtx
index e3471f7..8ed769f 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -11015,6 +11015,8 @@
  {%
   \@ifundefined{deferred at thm@head}{}
    {%
+    \let\Hy at deferred@thm at head\deferred at thm@head
+    \def\deferred at thm@head#1{\Hy at deferred@thm at head{#1}}%
     \renewcommand\Hy at theorem@makelinktarget[1]
      {%
       \AddToHookNext{cmd/deferred at thm@head/before}
diff --git a/testfiles/gh324-amsthm-patch.lvt b/testfiles/gh324-amsthm-patch.lvt
new file mode 100644
index 0000000..f84796a
--- /dev/null
+++ b/testfiles/gh324-amsthm-patch.lvt
@@ -0,0 +1,14 @@
+\documentclass[]{article}
+\input{regression-test}
+\usepackage{amsthm}
+\usepackage[czech]{babel}
+\usepackage{hyperref}                                             
+
+\newtheorem{foo}{bar}
+\begin{document}
+\START	
+	\begin{foo}
+		content...
+	\end{foo}
+	
+\end{document}
diff --git a/testfiles/gh324-amsthm-patch.tlg b/testfiles/gh324-amsthm-patch.tlg
new file mode 100644
index 0000000..54c7ebe
--- /dev/null
+++ b/testfiles/gh324-amsthm-patch.tlg
@@ -0,0 +1,6 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+[1
+] (gh324-amsthm-patch.aux)
+Package rerunfilecheck Info: File `gh324-amsthm-patch.out' has not changed.
+(rerunfilecheck)             Checksum: D41D8CD98F00B204E9800998ECF8427E;0.





More information about the latex3-commits mailing list.