[latex3-commits] [git/LaTeX3-latex3-hyperref] main: delay nameref beamer patch, issue #236 (40f49a1)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue May 17 10:26:57 CEST 2022


Repository : https://github.com/latex3/hyperref
On branch  : main
Link       : https://github.com/latex3/hyperref/commit/40f49a1f252ad0dca87feb89a5837216bb407951

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

commit 40f49a1f252ad0dca87feb89a5837216bb407951
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue May 17 10:26:57 2022 +0200

    delay nameref beamer patch, issue #236


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

40f49a1f252ad0dca87feb89a5837216bb407951
 ChangeLog.txt              |  4 ++++
 nameref.dtx                |  4 +++-
 testfiles/gh236-beamer.lvt |  8 ++++++++
 testfiles/gh236-beamer.tlg | 14 ++++++++++++++
 4 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/ChangeLog.txt b/ChangeLog.txt
index 1b8a54e..3c35ea9 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,7 @@
+2022-05-17 Ulrike Fischer/David Carlisle
+    * fixed: beamer patch in nameref has to be delayed after
+      the class has been loaded. issue #236.
+
 2022-05-16 Ulrike Fischer/David Carlisle
     * fixed: check if \nameref is already defined for compability
       with ltugboat.cls (issue #234)
diff --git a/nameref.dtx b/nameref.dtx
index d49735c..edbc1d2 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -33,7 +33,7 @@
 %<driver>\ProvidesFile{nameref.drv}
 % \fi
 % \ProvidesFile{nameref.dtx}
-  [2022-05-16 v2.49 Cross-referencing by name of section]%
+  [2022-05-17 v2.50 Cross-referencing by name of section]%
 %
 %
 % \iffalse
@@ -582,6 +582,7 @@
         }%
       \x
     }%
+    \AddToHook{class/beamer/after}{%
     \NR at PatchBeamer{section}%
     \NR at PatchBeamer{subsection}%
     \NR at PatchBeamer{subsubsection}%
@@ -601,6 +602,7 @@
         \NRorg at beamer@descriptionitem{#1}%
       }%
     }%
+   }%
    }{}%
 }{}
 %    \end{macrocode}
diff --git a/testfiles/gh236-beamer.lvt b/testfiles/gh236-beamer.lvt
new file mode 100644
index 0000000..28ed517
--- /dev/null
+++ b/testfiles/gh236-beamer.lvt
@@ -0,0 +1,8 @@
+\input{regression-test}
+\documentclass{beamer}
+
+\begin{document}
+\START
+\makeatletter\show\beamer at section
+\makeatletter\show\beamer at descriptionitem
+\end{document}
diff --git a/testfiles/gh236-beamer.tlg b/testfiles/gh236-beamer.tlg
new file mode 100644
index 0000000..eaa030e
--- /dev/null
+++ b/testfiles/gh236-beamer.tlg
@@ -0,0 +1,14 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \beamer at section=\long macro:
+[#1]->\NR at gettitle {#1}\NRorg at beamer@section [{#1}].
+l. ...\makeatletter\show\beamer at section
+> \beamer at descriptionitem=\long macro:
+#1->\NR at gettitle {#1}\NRorg at beamer@descriptionitem {#1}.
+l. ...\makeatletter\show\beamer at descriptionitem
+\tf at nav=\write...
+\tf at toc=\write...
+\tf at snm=\write...
+(gh236-beamer.aux)
+Package rerunfilecheck Info: File `gh236-beamer.out' has not changed.
+(rerunfilecheck)             Checksum: D41D8CD98F00B204E9800998ECF8427E;0.





More information about the latex3-commits mailing list.