diff options
author | Norbert Preining <norbert@preining.info> | 2022-03-17 03:00:46 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-03-17 03:00:46 +0000 |
commit | 8208f204439f3a899e43187857e3f9c86d4ebb7c (patch) | |
tree | 70c940f6d7a58f7878aeef16a87a1af85f6f3f69 /language/japanese/pxjahyper/pxjahyper.sty | |
parent | 725ce6a3e602c7516d471df841ea433b8c5bcd9d (diff) |
CTAN sync 202203170300
Diffstat (limited to 'language/japanese/pxjahyper/pxjahyper.sty')
-rw-r--r-- | language/japanese/pxjahyper/pxjahyper.sty | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/language/japanese/pxjahyper/pxjahyper.sty b/language/japanese/pxjahyper/pxjahyper.sty index 486792b8d7..47a913f8ee 100644 --- a/language/japanese/pxjahyper/pxjahyper.sty +++ b/language/japanese/pxjahyper/pxjahyper.sty @@ -1,7 +1,7 @@ %% %% This is file 'pxjahyper.sty'. %% -%% Copyright (c) 2012-2021 Takayuki YATO (aka. "ZR") +%% Copyright (c) 2012-2022 Takayuki YATO (aka. "ZR") %% GitHub: https://github.com/zr-tex8r %% Twitter: @zr_tex8r %% @@ -10,7 +10,7 @@ %% package declaration \NeedsTeXFormat{pLaTeX2e} -\ProvidesPackage{pxjahyper}[2021/06/06 v0.9c] +\ProvidesPackage{pxjahyper}[2022/03/15 v0.9d] \def\pxhy@pkgname{pxjahyper} \providecommand{\bxDebug}[1]{} @@ -31,7 +31,7 @@ \newif\ifpxhy@uptex \newif\ifpxhy@etex \newif\ifpxhy@etoolbox -\newif\ifpxhy@new@hook@system +\chardef\pxhy@hook@system=0 \newif\ifpxhy@tounicode \newif\ifpxhy@uniescape \newif\ifpxhy@bigcode @@ -208,7 +208,11 @@ \fi %% Check for the new hook system. -\@ifl@t@r\fmtversion{2020/10/01}{\pxhy@new@hook@systemtrue}{} +\@ifl@t@r\fmtversion{2021/11/15}{% + \chardef\pxhy@hook@system=2 +}{\@ifl@t@r\fmtversion{2020/02/02}{% + \chardef\pxhy@hook@system=1 +}{}} %% adjustment % upTeX not in unicode is not seen as upTeX. @@ -280,7 +284,7 @@ pxhy@ptex = \ifpxhy@ptex true\else false\fi^^J% pxhy@uptex = \ifpxhy@uptex true\else false\fi^^J% pxhy@etex = \ifpxhy@etex true\else false\fi^^J% pxhy@etoolbox = \ifpxhy@etoolbox true\else false\fi^^J% -pxhy@new@hook@system = \ifpxhy@new@hook@system true\else false\fi^^J% +pxhy@hook@system = \the\pxhy@hook@system^^J% ifpxhy@hy@unicode = \ifpxhy@hy@unicode true\else false\fi^^J% pxhy@bigcode = \ifpxhy@bigcode true\else false\fi^^J% pxhy@driver = \the\pxhy@driver^^J% @@ -298,7 +302,7 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \let\pxhy@mk\indent % unexpandable %% \pxhy@begin@dvi@hook{<text>} -\ifpxhy@new@hook@system +\ifnum\pxhy@hook@system>0 \def\pxhy@begin@dvi@hook#1{% \AddToHook{shipout/firstpage}{#1}% } @@ -335,13 +339,17 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% %% \pxhy@hook@after@package{<package-name>}{<code>} \@onlypreamble\pxhy@hook@after@package \def\pxhy@hook@after@package#1#2{% - \ifpxhy@new@hook@system + \ifcase\pxhy@hook@system + \AtBeginDocument{% + \@ifpackageloaded{#1}{#2}{}% + }% + \or \@ifpackageloaded{#1}{#2}{% \AddToHook{package/after/#1}{#2}% }% - \else - \AtBeginDocument{% - \@ifpackageloaded{#1}{#2}{}% + \or + \@ifpackageloaded{#1}{#2}{% + \AddToHook{package/#1/after}{#2}% }% \fi } |