diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-26 21:48:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-26 21:48:44 +0000 |
commit | dba7c23fa20df52c8da99b1aff79858fb7398f9b (patch) | |
tree | fc9f9ebb73f1358e07d2fd966ddee3435e11f1a5 /Master/texmf-dist/tex/platex | |
parent | bb5952789fb01f17bdcc46cead26d8cbf369866d (diff) |
pxchfon (26sep20)
git-svn-id: svn://tug.org/texlive/trunk@56444 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/platex')
-rw-r--r-- | Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty b/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty index 27214b23297..f6b89ce97f4 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/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{% |