[latex3-commits] [git/LaTeX3-latex3-hyperref] setpagesize: use standard hooks (220cf15)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Sep 22 16:10:58 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : setpagesize
Link : https://github.com/latex3/hyperref/commit/220cf15864703ee67233790df717e784750c7974
>---------------------------------------------------------------
commit 220cf15864703ee67233790df717e784750c7974
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Sep 22 16:10:58 2022 +0200
use standard hooks
>---------------------------------------------------------------
220cf15864703ee67233790df717e784750c7974
hyperref.dtx | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 0ed9f7d..fa750a5 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -8240,9 +8240,10 @@
% Provide a dummy default definition of \cs{hyper at newdestlabel}
% inside the .aux files.
% \begin{macrocode}
-\AddLineBeginAux{%
- \string\providecommand\string\hyper at newdestlabel[2]{}%
-}
+\AddToHook{include/before}
+ {\immediate\write\@partaux{\string\providecommand\string\hyper at newdestlabel[2]{}}}
+\AddToHook{begindocument}
+ {\immediate\write\@mainaux{\string\providecommand\string\hyper at newdestlabel[2]{}}}
% \end{macrocode}
%
% \section{Forms creation}
@@ -12709,15 +12710,7 @@
\fi
\fi
}
-\@ifpackageloaded{showkeys}{%
- \HyRef at ShowKeysInit
-}{%
- \Hy at AtBeginDocument{%
- \@ifpackageloaded{showkeys}{%
- \HyRef at ShowKeysInit
- }{}%
- }%
-}
+\AddToHook{package/showkeys/after}{\HyRef at ShowKeysInit}
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.