[latex3-commits] [latex3/hyperref] develop: make \hyperref protected in nohyperref (b526e85)
github at latex-project.org
github at latex-project.org
Wed Dec 20 15:01:14 CET 2023
Repository : https://github.com/latex3/hyperref
On branch : develop
Link : https://github.com/latex3/hyperref/commit/b526e85673d3fdc79161e44b4f4aa3d2096418f6
>---------------------------------------------------------------
commit b526e85673d3fdc79161e44b4f4aa3d2096418f6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Dec 20 15:01:14 2023 +0100
make \hyperref protected in nohyperref
>---------------------------------------------------------------
b526e85673d3fdc79161e44b4f4aa3d2096418f6
hyperref.dtx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 1cc617d..e3471f7 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -9508,7 +9508,7 @@
\let\hyperdef\@gobbletwo
\let\hyperlink\@gobble
\let\hypertarget\@gobble
-\def\hyperref{%
+\protected\def\hyperref{%
\@ifnextchar[\@gobbleopt{\expandafter\@gobbletwo\@gobble}%
}
\long\def\@gobbleopt[#1]{}
More information about the latex3-commits
mailing list.