Skip to content

Commit

Permalink
plautopatch.sty: do not require pxeveryshi and pxatbegshi
Browse files Browse the repository at this point in the history
anticipating native support by pLaTeX2e 2020-10-01,
these packages are made no-op. See texjporg/tests-shipout#1
aminophen committed Sep 25, 2020
1 parent b069e81 commit aa209da
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions plautopatch-ja.tex
Original file line number Diff line number Diff line change
@@ -158,6 +158,8 @@ \section*{変更履歴}
\item 2020/02/25 v0.9e \textsf{textpos}のサポート
\item 2020/05/05 v0.9f \textsf{collcell}のサポート
\item 2020/05/25 v0.9g \textsf{pxjahyper}の自動読込
\item 2020/09/13 v0.9h \LaTeXe~2020-10-01では\textsf{filehook}非依存に
\item 2020/09/25 v0.9i \textsf{pxeveryshi}と\textsf{pxatbegshi}を不要に
\end{itemize}

\end{document}
14 changes: 11 additions & 3 deletions plautopatch.sty
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

\NeedsTeXFormat{LaTeX2e}% not pLaTeX2e on purpose!
\ProvidesPackage{plautopatch}
[2020/09/13 v0.9h Automated patches for pLaTeX/upLaTeX]
[2020/09/25 v0.9i Automated patches for pLaTeX/upLaTeX]

\ifx\pfmtname\@undefined
\PackageWarningNoLine{plautopatch}{%
@@ -213,8 +213,16 @@
% --- in most cases, pxeverysel can be safely loaded even after everysel
% --- but it can fail when \AtBeginDocument{everysel} is involved
\platpc@patch@before{everysel}{pxeverysel}% platex-tools
\platpc@patch@after{everyshi}{pxeveryshi}% platex-tools
\platpc@patch@after{atbegshi}{pxatbegshi}% platex-tools
% --- since LaTeX2e 2020-10-01, everyshi.sty is merely
% --- an emulation by everyshi-ltx.sty from ltshipout.dtx,
% --- which is supported by pLaTeX2e kernel natively
\@ifl@t@r{\fmtversion}{2020/10/01}{}%
{\platpc@patch@after{everyshi}{pxeveryshi}}% platex-tools
% --- since LaTeX2e 2020-10-01, atbegshi.sty is merely
% --- an emulation by atbegshi-ltx.sty from ltshipout.dtx,
% --- which is supported by pLaTeX2e kernel natively
\@ifl@t@r{\fmtversion}{2020/10/01}{}%
{\platpc@patch@after{atbegshi}{pxatbegshi}}% platex-tools
\platpc@patch@before{ftnright}{pxftnright}% platex-tools
\platpc@patch@after{multicol}{pxmulticol}% platex-tools
\platpc@patch@after{xspace}{pxxspace}% platex-tools
2 changes: 2 additions & 0 deletions plautopatch.tex
Original file line number Diff line number Diff line change
@@ -160,6 +160,8 @@ \section*{Change History}
\item 2020/02/25 v0.9e Add support for \textsf{textpos}
\item 2020/05/05 v0.9f Add support for \textsf{collcell}
\item 2020/05/25 v0.9g Automatically load \textsf{pxjahyper}
\item 2020/09/13 v0.9h No dependency for \textsf{filehook} on \LaTeXe~2020-10-01
\item 2020/09/25 v0.9i Do not require \textsf{pxeveryshi} and \textsf{pxatbegshi}
\end{itemize}

\end{document}
2 changes: 1 addition & 1 deletion pxpgfrcs.sty
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pxpgfrcs}
[2018/09/21 v0.1]
[2018/09/21 v0.1 shadings etc in tate class]
\RequirePackage{pgfrcs}

% Note: I chose the name "pxpgfrcs.sty"

0 comments on commit aa209da

Please sign in to comment.