summaryrefslogtreecommitdiff
path: root/language/japanese/platex-tools/pxatbegshi.sty
diff options
context:
space:
mode:
Diffstat (limited to 'language/japanese/platex-tools/pxatbegshi.sty')
-rw-r--r--language/japanese/platex-tools/pxatbegshi.sty26
1 files changed, 22 insertions, 4 deletions
diff --git a/language/japanese/platex-tools/pxatbegshi.sty b/language/japanese/platex-tools/pxatbegshi.sty
index bbe8c49ac3..3c8a830415 100644
--- a/language/japanese/platex-tools/pxatbegshi.sty
+++ b/language/japanese/platex-tools/pxatbegshi.sty
@@ -18,13 +18,19 @@
% the original code (2018/09/21 v0.3), which was largely based on
% H. Kitagawa's on GitHub:texjporg/tex-jp-build#21.
% -- concept: execute all hooks inside yoko direction \vbox
-% --------------------------------------------------
+%
+% Update: version 2020/09/09 v0.6 supports LaTeX2e 2020-10-01
+% based on a method proposed by H. Kitagawa in lltjp-atbegshi.sty.
+%
+% Update: version 2020/09/25 v0.7 does nothing, since
+% pLaTeX2e 2020-10-01 will support the situation natively.
+% --------------------------------------------------------------------
%
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pxatbegshi}
- [2019/09/07 v0.5 Patch to atbegshi for (u)pLaTeX]
+ [2020/09/25 v0.7 Patch to atbegshi for (u)pLaTeX]
%% preparations
\def\pxabgs@pkgname{pxatbegshi}
@@ -33,6 +39,20 @@
%% load it
\RequirePackage{atbegshi}
+%% Since LaTeX2e 2020-10-01, atbegshi.sty is merely
+%% an emulation by atbegshi-ltx.sty from ltshipout.dtx.
+%% The new code does NOT define \AtBegShi@Output,
+%% so we can detect it!
+
+\ifx\AtBegShi@Output\@undefined
+ %% pLaTeX2e 2020-10-01 natively supports the situation
+ \PackageInfo{pxatbegshi}{This package is no longer needed}
+ \expandafter\endinput
+\fi
+
+%% The rest of this package is meant for
+%% LaTeX2e 2020-02-02 PL5 or older.
+
%% internal macros are locally effective
\begingroup
@@ -56,8 +76,6 @@
%---------------------------------------
-% concept: execute all hooks inside yoko direction \vbox
-
% prepare
\let\pxabgs@AtBegShi@Output\AtBegShi@Output
% try first patch