From ac0ae0fcbd5ee121e6b9134cced71d961e30ed68 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 27 Sep 2020 03:01:57 +0000
Subject: CTAN sync 202009270301

---
 language/japanese/pxchfon/pxchfon.sty | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

(limited to 'language/japanese/pxchfon/pxchfon.sty')

diff --git a/language/japanese/pxchfon/pxchfon.sty b/language/japanese/pxchfon/pxchfon.sty
index 27214b2329..f6b89ce97f 100644
--- a/language/japanese/pxchfon/pxchfon.sty
+++ b/language/japanese/pxchfon/pxchfon.sty
@@ -10,7 +10,7 @@
 
 %% package declaration
 \NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxchfon}[2020/04/25 v1.7c]
+\ProvidesPackage{pxchfon}[2020/09/26 v1.7d]
 \def\pxcz@pkgname{pxchfon}
 
 %--------------------------------------- general
@@ -339,9 +339,9 @@
 \fi
 
 %% 'everypage' needs 'atbegshi' package
-\ifpxcz@everypage
+\ifpxcz@everypage \ifx\AddToHook\@undefined
 \RequirePackage{atbegshi}
-\fi
+\fi\fi
 
 %% apply default value for \pxcz@directunicode
 \ifx\pxcz@directunicode\relax
@@ -1549,6 +1549,7 @@
 \def\pxcz@mgfamily@hook{\romanfamily{cfjam}}
 
 %% \pxcz@set@page@hook{<text>}
+\ifx\AddToHook\@undefined  %-------- no hook system
 \ifpxcz@everypage
 \pxcz@onlypreamble@def\pxcz@set@page@hook#1{%
   \AtBeginShipout{\setbox\AtBeginShipoutBox=\vbox{%
@@ -1559,6 +1560,15 @@
   % this is \AtBeginDvi with forcing of yoko-dir added
   \global\setbox\@begindvibox\vbox{\yoko\unvbox\@begindvibox#1}}
 \fi
+\else                      %-------- with hook system
+\ifpxcz@everypage
+\pxcz@onlypreamble@def\pxcz@set@page@hook#1{%
+  \AddToHook{shipout/background}{\hb@xt@\z@{#1\hss}}}
+\else
+\pxcz@onlypreamble@def\pxcz@set@page@hook#1{%
+  \AtBeginDvi{#1}}
+\fi
+\fi
 
 %% \pxcz@check@alldefined{<sym>,...}
 \pxcz@onlypreamble@def\pxcz@check@alldefined#1{%
-- 
cgit v1.2.3

