summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-09-21 21:07:02 +0000
committerKarl Berry <karl@freefriends.org>2018-09-21 21:07:02 +0000
commita7130f1e9343b9d655100fef8c49e689549cbfe2 (patch)
tree5744cc9ba6a853c46ac72afdc41b85ebe7d86443 /Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty
parent9444430d73ece7ecf9adaf5b3f4ee373896f95be (diff)
plautopatch (21sep18)
git-svn-id: svn://tug.org/texlive/trunk@48723 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty')
-rw-r--r--Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty42
1 files changed, 30 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty b/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty
index 483b77f67c8..8dbc7eb9383 100644
--- a/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty
+++ b/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty
@@ -6,9 +6,18 @@
% https://github.com/aminophen/plautopatch
%
-\NeedsTeXFormat{pLaTeX2e}
+\NeedsTeXFormat{LaTeX2e}% not pLaTeX2e on purpose!
\ProvidesPackage{plautopatch}
- [2018/08/22 v0.3 Automated patches for pLaTeX/upLaTeX]
+ [2018/09/21 v0.5 Automated patches for pLaTeX/upLaTeX]
+
+\ifx\pfmtname\@undefined
+ \PackageWarningNoLine{plautopatch}{%
+ This package is meant for pLaTeX/upLaTeX,\MessageBreak
+ you will not need it.}
+ \expandafter\endinput
+\fi
+
+\NeedsTeXFormat{pLaTeX2e}% just in case ...
\def\platpc@pkgname{plautopatch}
\def\platpc@err{\PackageError\platpc@pkgname}
\def\platpc@warn{\PackageWarningNoLine\platpc@pkgname}
@@ -40,13 +49,11 @@
\fi
}
-%% \platpc@ifloadederr{<package>}
-% = throw an error if <package> is already loaded.
-\def\platpc@ifloadederr#1{%
- \@ifpackageloaded{#1}{%
- \platpc@err{Package `#1' already loaded!\MessageBreak
- Use \string\RequirePackage{\platpc@pkgname} earlier}\@ehc
- }%
+%% \platpc@err@toolate{<package>}
+% = content of the "too-late" error.
+\def\platpc@err@toolate#1{%
+ \platpc@err{Package `#1' already loaded!\MessageBreak
+ Use \string\RequirePackage{\platpc@pkgname} earlier}\@ehc
}
% high-level helpers
@@ -124,9 +131,11 @@
}%
}%
% if <orig> is already loaded at this point, too late!
- \platpc@ifloadederr{#1}%
- % do it
- \AtBeginOfPackageFile{#1}{\csname platpc@begin@#1\endcsname}%
+ \@ifpackageloaded{#1}{%
+ \platpc@err@toolate{#1}%
+ }{% else
+ \AtBeginOfPackageFile{#1}{\csname platpc@begin@#1\endcsname}%
+ }%
}
\@onlypreamble\platpc@patch@before
@@ -168,10 +177,19 @@
\platpc@patch@after{array}{plarray}% platex-tools
\platpc@patch@after@both{array}{plext}{plextarray}% platex-tools
\platpc@patch@after@both{delarray}{plext}{plextdelarray}% platex-tools
+\platpc@patch@after@both{colortbl}{plext}{plextcolortbl}% (maintained here!)
\platpc@patch@after{everysel}{pxeverysel}% platex-tools
\platpc@patch@after{everyshi}{pxeveryshi}% platex-tools
\platpc@patch@after{atbegshi}{pxatbegshi}% platex-tools
\platpc@patch@before{ftnright}{pxftnright}% platex-tools
\platpc@patch@after{pdfpages}{pxpdfpages}% (maintained here!)
+% --- plextarydshln is not well tested, not activated for now
+%\platpc@patch@after@both{arydshln}{plext}{plextarydshln}% (maintained here!)
+
+% for TikZ/PGF
+\platpc@patch@after{pgfrcs}{pxpgfrcs}% (maintained here!)
+% --- pxpgfmark is useful on e-(u)pTeX + dvipdfmx
+% --- but does no harm for other conditions
+\platpc@patch@after{pgfcore}{pxpgfmark}% by Takayuki YATO (ZR)
\endinput