summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/platex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-10-04 21:12:52 +0000
committerKarl Berry <karl@freefriends.org>2020-10-04 21:12:52 +0000
commit1e3598faa2c913da7dda4fc84b39ba5e444d7a2a (patch)
tree220d2512f31ffb9ea1cddb6e94b78c6303c30085 /Master/texmf-dist/tex/platex
parent3fcdb5a14db8eebe5e1441ac3e9035ab93303380 (diff)
pxchfon (4oct20)
git-svn-id: svn://tug.org/texlive/trunk@56537 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/platex')
-rw-r--r--Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty14
1 files changed, 9 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty b/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty
index f6b89ce97f4..57c428a9cbc 100644
--- a/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty
+++ b/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxchfon}[2020/09/26 v1.7d]
+\ProvidesPackage{pxchfon}[2020/10/04 v1.7e]
\def\pxcz@pkgname{pxchfon}
%--------------------------------------- general
@@ -117,6 +117,10 @@
\chardef\pxcz@pxufont@loaded=0
}
+%% \ifpxcz@old@hook@system
+\newif\ifpxcz@old@hook@system
+\@ifl@t@r\fmtversion{2020/10/01}{}{\pxcz@old@hook@systemtrue}
+
%--------------------------------------- custom presets
%% \pxcz@custom@presets
@@ -339,7 +343,7 @@
\fi
%% 'everypage' needs 'atbegshi' package
-\ifpxcz@everypage \ifx\AddToHook\@undefined
+\ifpxcz@everypage \ifpxcz@old@hook@system
\RequirePackage{atbegshi}
\fi\fi
@@ -1549,7 +1553,7 @@
\def\pxcz@mgfamily@hook{\romanfamily{cfjam}}
%% \pxcz@set@page@hook{<text>}
-\ifx\AddToHook\@undefined %-------- no hook system
+\ifpxcz@old@hook@system %----
\ifpxcz@everypage
\pxcz@onlypreamble@def\pxcz@set@page@hook#1{%
\AtBeginShipout{\setbox\AtBeginShipoutBox=\vbox{%
@@ -1560,7 +1564,7 @@
% this is \AtBeginDvi with forcing of yoko-dir added
\global\setbox\@begindvibox\vbox{\yoko\unvbox\@begindvibox#1}}
\fi
-\else %-------- with hook system
+\else %----
\ifpxcz@everypage
\pxcz@onlypreamble@def\pxcz@set@page@hook#1{%
\AddToHook{shipout/background}{\hb@xt@\z@{#1\hss}}}
@@ -1568,7 +1572,7 @@
\pxcz@onlypreamble@def\pxcz@set@page@hook#1{%
\AtBeginDvi{#1}}
\fi
-\fi
+\fi %----
%% \pxcz@check@alldefined{<sym>,...}
\pxcz@onlypreamble@def\pxcz@check@alldefined#1{%