From e459b11c06a0dee213069a0129a18e77755ca167 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 14 Oct 2020 21:43:07 +0000
Subject: plautopatch (14oct20)

git-svn-id: svn://tug.org/texlive/trunk@56657 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty')

diff --git a/Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty b/Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty
index b5508dcf476..a151a194379 100644
--- a/Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty
+++ b/Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty
@@ -9,8 +9,15 @@
 %% package declaration
 \NeedsTeXFormat{pLaTeX2e}
 \ProvidesPackage{pxpgfrcs}
-  [2018/09/21 v0.1 shadings etc in tate class]
-\RequirePackage{pgfrcs}
+  [2020/10/10 v0.2 shadings etc in tate class]
+\RequirePackage{pgfrcs}% pgfutil-latex.def requires everyshi
+\ifx\@EveryShipout@Output\@undefined
+  % LaTeX2e 2020-10-01: an emulation by ``everyshi-ltx.sty''
+  % => pLaTeX2e 2020-10-01 natively supports it
+\else
+  % older: the real ``everyshi.sty'' is loaded
+  \IfFileExists{pxeveryshi.sty}{\RequirePackage{pxeveryshi}}{}
+\fi
 
 % Note: I chose the name "pxpgfrcs.sty"
 % (instead of "pgfutil-platex.def") because
@@ -20,7 +27,6 @@
 %   such an interface like \input pgfutil-platex.def.
 
 % patch pgfutil-latex.def
-\RequirePackage{pxeveryshi}% pgfutil-latex.def requires everyshi
 \def\pgfutil@insertatbegincurrentpagefrombox#1{%
  \edef\pgf@temp{\the\wd\pgfutil@abb}%
  \global\setbox\pgfutil@abb\hbox{%
-- 
cgit v1.2.3

