diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-27 21:26:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-27 21:26:48 +0000 |
commit | f7a5fce4f1f54626e099adbbfc80dcf92745b4de (patch) | |
tree | 17daf865bb9b29c52c1a4756e3146d45ce27bdb7 /Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty | |
parent | d6491c6ee0bd7716c5f337ebd577c4964dc43c0c (diff) |
pxjahyper (27sep20)
git-svn-id: svn://tug.org/texlive/trunk@56453 c570f23f-e606-0410-a88d-b1316a301751
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 |