From f7a5fce4f1f54626e099adbbfc80dcf92745b4de Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 27 Sep 2020 21:26:48 +0000 Subject: pxjahyper (27sep20) git-svn-id: svn://tug.org/texlive/trunk@56453 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def | 2 +- Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/platex') diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def index 288f3209975..48b6e14216d 100644 --- a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def +++ b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def @@ -11,7 +11,7 @@ %% package declaration \NeedsTeXFormat{pLaTeX2e} -\ProvidesFile{pxjahyper-ajm.def}[2020/06/13 v0.5] +\ProvidesFile{pxjahyper-ajm.def}[2020/09/27 v0.5a] %% avoid multiple loading \csname pxjahyperajmLoaded\endcsname 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{} +\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{} % Let \pxhy@jchar a macro expanding to a single jchar token -- cgit v1.2.3