diff options
Diffstat (limited to 'Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty')
-rw-r--r-- | Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty index 4d83b2a3517..120cc9697e1 100644 --- a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty +++ b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty @@ -10,7 +10,7 @@ %% package declaration \NeedsTeXFormat{pLaTeX2e} -\ProvidesPackage{pxjahyper}[2020/06/13 v0.5] +\ProvidesPackage{pxjahyper}[2020/09/27 v0.5a] %% error messages \def\pxhy@pkgname{pxjahyper} @@ -246,6 +246,7 @@ pxhy@driver = \the\pxhy@driver^^J% \let\pxhy@mk\indent % unexpandable %% \pxhy@out@special{<text>} +\ifx\AddToHook\@undefined %------- without hook system \def\pxhy@out@special#1{% \begingroup \toks\z@{\special{#1}}% @@ -253,6 +254,13 @@ pxhy@driver = \the\pxhy@driver^^J% \xdef\AtBegShi@HookFirst{\the\toks@\the\toks\tw@}% \endgroup } +\else %------- with hook system +\def\pxhy@out@special#1{% + \AddToHook{shipout/firstpage}[./urgent]{\special{#1}}% +} +\DeclareHookRule{shipout/firstpage}{./urgent}{<}{hyperref} +\DeclareHookRule{shipout/firstpage}{.}{>}{hyperref} +\fi %% \pxhy@get@jchar{<num>} % Let \pxhy@jchar a macro expanding to a single jchar token |