summaryrefslogtreecommitdiff
path: root/language/japanese/pxjahyper/pxjahyper.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-28 03:04:08 +0000
committerNorbert Preining <norbert@preining.info>2020-09-28 03:04:08 +0000
commit34310603e5253ef5742542e3f0123b341a70ee20 (patch)
tree51076d298e97a9c86619db3ada2af17e81c074d1 /language/japanese/pxjahyper/pxjahyper.sty
parentac0ae0fcbd5ee121e6b9134cced71d961e30ed68 (diff)
CTAN sync 202009280304
Diffstat (limited to 'language/japanese/pxjahyper/pxjahyper.sty')
-rw-r--r--language/japanese/pxjahyper/pxjahyper.sty10
1 files changed, 9 insertions, 1 deletions
diff --git a/language/japanese/pxjahyper/pxjahyper.sty b/language/japanese/pxjahyper/pxjahyper.sty
index 4d83b2a351..120cc9697e 100644
--- a/language/japanese/pxjahyper/pxjahyper.sty
+++ b/language/japanese/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