diff options
author | Karl Berry <karl@freefriends.org> | 2018-09-21 21:07:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-09-21 21:07:02 +0000 |
commit | a7130f1e9343b9d655100fef8c49e689549cbfe2 (patch) | |
tree | 5744cc9ba6a853c46ac72afdc41b85ebe7d86443 /Master | |
parent | 9444430d73ece7ecf9adaf5b3f4ee373896f95be (diff) |
plautopatch (21sep18)
git-svn-id: svn://tug.org/texlive/trunk@48723 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/plautopatch/README.md | 15 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.pdf | bin | 94965 -> 96116 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex | 36 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/plautopatch/plautopatch.pdf | bin | 28681 -> 29610 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex | 38 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty | 42 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty | 43 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/plautopatch/plextcolortbl.sty | 39 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty | 34 |
10 files changed, 211 insertions, 44 deletions
diff --git a/Master/texmf-dist/doc/latex/plautopatch/README.md b/Master/texmf-dist/doc/latex/plautopatch/README.md index 7d21808aaf8..9b8cf5d5c61 100644 --- a/Master/texmf-dist/doc/latex/plautopatch/README.md +++ b/Master/texmf-dist/doc/latex/plautopatch/README.md @@ -11,7 +11,7 @@ because specific patches are loaded automatically whenever necessary. This helps not only to simplify source files, but also to make the appearance of working pLaTeX/upLaTeX sources -similar to those of ordinally LaTeX ones. +similar to those of ordinary LaTeX ones. The following patches are currently registered: @@ -20,11 +20,14 @@ The following patches are currently registered: - array (latex-tools) -> plarray (platex-tools) - array (latex-tools) + plext (platex) -> plextarray (platex-tools) - delarray (latex-tools) + plext (platex) -> plextdelarray (platex-tools) +- colortbl + plext (platex) -> plextcolortbl (maintained here!) - everysel (ms) -> pxeverysel (platex-tools) - everyshi (ms) -> pxeveryshi (platex-tools) - atbegshi (oberdiek) -> pxatbegshi (platex-tools) - ftnright (latex-tools) -> pxftnright (platex-tools) - pdfpages -> pxpdfpages (maintained here!) +- pgfrcs (pgf) -> pxpgfrcs (maintained here!) +- pgfcore (pgf) -> pxpgfmark (by Takayuki YATO) ## Requirements @@ -36,10 +39,18 @@ written by Martin Scharrer. This bundle may distribute some tiny patches together with the main package. Short information: +- plextcolortbl.sty: + Patch for colortbl.sty (by David Carlisle) to improve + compatibility with plext.sty in pLaTeX. + Can be used on pLaTeX/upLaTeX. - pxpdfpages.sty: Patch for pdfpages.sty (by Andreas Matthias) to support Japanese-style crop marks (called 'tombow' in Japanese). Can be used on pLaTeX/upLaTeX. +- pxpgfrcs.sty: + Patch for pgfrcs.sty (part of PGF) to support + Japanese classes for vertical writing. + Can be used on pLaTeX/upLaTeX. ## Installation @@ -58,6 +69,6 @@ the 3-clause BSD license (see [LICENSE](./LICENSE)). ## Release Date -2018-08-22 +2018-09-21 Hironobu Yamashita diff --git a/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.pdf b/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.pdf Binary files differindex 65350177c33..989e3eafb3e 100644 --- a/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.pdf +++ b/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.pdf diff --git a/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex b/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex index b54973f17d9..dbf7a08572d 100644 --- a/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex +++ b/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex @@ -73,13 +73,19 @@ p\LaTeX/up\LaTeX{}で動作するソースと通常の\LaTeX{}ソースの \section*{現在対応しているパッケージの一覧} -\def\ITEMoo#1 (#2) -> #3 (#4){% +\def\ITEMoTo#1 (#2) -> #3 (#4){% \item \textsf{#1} (\textsf{#2})\\ $\rightarrow$ \textsf{#3} (\textsf{#4})} -\def\ITEMooo#1 (#2) + #3 (#4) -> #5 (#6){% +\def\ITEMooTo#1 (#2) + #3 (#4) -> #5 (#6){% \item \textsf{#1} (\textsf{#2}) + \textsf{#3} (\textsf{#4})\\ $\rightarrow$ \textsf{#5} (\textsf{#6})} -\def\ITEM#1 -> #2 {% +\def\ITEMxoTo#1 + #2 (#3) -> #4 (#5){% + \item \textsf{#1} + \textsf{#2} (\textsf{#3})\\ + $\rightarrow$ \textsf{#4} (\textsf{#5})} +\def\ITEMoTx#1 (#2) -> #3 {% + \item \textsf{#1} (\textsf{#2})\\ + $\rightarrow$ \textsf{#3} } +\def\ITEMxTx#1 -> #2 {% \item \textsf{#1}\\ $\rightarrow$ \textsf{#2} } @@ -92,16 +98,19 @@ p\LaTeX/up\LaTeX{}で動作するソースと通常の\LaTeX{}ソースの 現在のバージョン (\filedate\space\fileversion) がサポートしているのは 下記のパッケージです。 \begin{itemize} -\ITEMoo tracefnt (latex) -> ptrace/uptrace (platex/uplatex) -\ITEMoo fltrace (latex) -> pfltrace (platex) -\ITEMoo array (latex-tools) -> plarray (platex-tools) -\ITEMooo array (latex-tools) + plext (platex) -> plextarray (platex-tools) -\ITEMooo delarray (latex-tools) + plext (platex) -> plextdelarray (platex-tools) -\ITEMoo everysel (ms) -> pxeverysel (platex-tools) -\ITEMoo everyshi (ms) -> pxeveryshi (platex-tools) -\ITEMoo atbegshi (oberdiek) -> pxatbegshi (platex-tools) -\ITEMoo ftnright (latex-tools) -> pxftnright (platex-tools) -\ITEM pdfpages -> pxpdfpages (maintained here!) +\ITEMoTo tracefnt (latex) -> ptrace/uptrace (platex/uplatex) +\ITEMoTo fltrace (latex) -> pfltrace (platex) +\ITEMoTo array (latex-tools) -> plarray (platex-tools) +\ITEMooTo array (latex-tools) + plext (platex) -> plextarray (platex-tools) +\ITEMooTo delarray (latex-tools) + plext (platex) -> plextdelarray (platex-tools) +\ITEMxoTo colortbl + plext (platex) -> plextcolortbl (maintained here!) +\ITEMoTo everysel (ms) -> pxeverysel (platex-tools) +\ITEMoTo everyshi (ms) -> pxeveryshi (platex-tools) +\ITEMoTo atbegshi (oberdiek) -> pxatbegshi (platex-tools) +\ITEMoTo ftnright (latex-tools) -> pxftnright (platex-tools) +\ITEMxTx pdfpages -> pxpdfpages (maintained here!) +\ITEMoTx pgfrcs (pgf) -> pxpgfrcs (maintained here!) +\ITEMoTx pgfcore (pgf) -> pxpgfmark (by Takayuki YATO) \end{itemize} もちろん、このリストは随時、追加・削除・置き換えていく予定です。 互換性の問題や追加したいパッケージがある場合はご一報ください。 @@ -126,6 +135,7 @@ p\LaTeX/up\LaTeX{}で動作するソースと通常の\LaTeX{}ソースの \begin{itemize} \item 2018/08/21 v0.2 最初のCTANリリース版 \item 2018/08/22 v0.3 元パッケージ検出の改良 + \item 2018/09/21 v0.5 \textsf{colortbl}や\textsf{pgf}もサポート \end{itemize} \end{document} diff --git a/Master/texmf-dist/doc/latex/plautopatch/plautopatch.pdf b/Master/texmf-dist/doc/latex/plautopatch/plautopatch.pdf Binary files differindex 71649aed033..ff98fea240c 100644 --- a/Master/texmf-dist/doc/latex/plautopatch/plautopatch.pdf +++ b/Master/texmf-dist/doc/latex/plautopatch/plautopatch.pdf diff --git a/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex b/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex index 466548c130a..70cf605e89e 100644 --- a/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex +++ b/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex @@ -25,7 +25,7 @@ because specific patches are loaded automatically whenever necessary. This helps not only to simplify source files, but also to make the appearance of working p\LaTeX/up\LaTeX\ sources -similar to those of ordinally \LaTeX\ ones. +similar to those of ordinary \LaTeX\ ones. The package is maintained on GitHub: \begin{verbatim} @@ -73,13 +73,19 @@ as a list separated by commas and spaces. \section*{List of currently available patches} -\def\ITEMoo#1 (#2) -> #3 (#4){% +\def\ITEMoTo#1 (#2) -> #3 (#4){% \item \textsf{#1} (\textsf{#2})\\ $\rightarrow$ \textsf{#3} (\textsf{#4})} -\def\ITEMooo#1 (#2) + #3 (#4) -> #5 (#6){% +\def\ITEMooTo#1 (#2) + #3 (#4) -> #5 (#6){% \item \textsf{#1} (\textsf{#2}) + \textsf{#3} (\textsf{#4})\\ $\rightarrow$ \textsf{#5} (\textsf{#6})} -\def\ITEM#1 -> #2 {% +\def\ITEMxoTo#1 + #2 (#3) -> #4 (#5){% + \item \textsf{#1} + \textsf{#2} (\textsf{#3})\\ + $\rightarrow$ \textsf{#4} (\textsf{#5})} +\def\ITEMoTx#1 (#2) -> #3 {% + \item \textsf{#1} (\textsf{#2})\\ + $\rightarrow$ \textsf{#3} } +\def\ITEMxTx#1 -> #2 {% \item \textsf{#1}\\ $\rightarrow$ \textsf{#2} } @@ -91,16 +97,19 @@ The legend: Current version (\filedate\space\fileversion) supports the followings: \begin{itemize} -\ITEMoo tracefnt (latex) -> ptrace/uptrace (platex/uplatex) -\ITEMoo fltrace (latex) -> pfltrace (platex) -\ITEMoo array (latex-tools) -> plarray (platex-tools) -\ITEMooo array (latex-tools) + plext (platex) -> plextarray (platex-tools) -\ITEMooo delarray (latex-tools) + plext (platex) -> plextdelarray (platex-tools) -\ITEMoo everysel (ms) -> pxeverysel (platex-tools) -\ITEMoo everyshi (ms) -> pxeveryshi (platex-tools) -\ITEMoo atbegshi (oberdiek) -> pxatbegshi (platex-tools) -\ITEMoo ftnright (latex-tools) -> pxftnright (platex-tools) -\ITEM pdfpages -> pxpdfpages (maintained here!) +\ITEMoTo tracefnt (latex) -> ptrace/uptrace (platex/uplatex) +\ITEMoTo fltrace (latex) -> pfltrace (platex) +\ITEMoTo array (latex-tools) -> plarray (platex-tools) +\ITEMooTo array (latex-tools) + plext (platex) -> plextarray (platex-tools) +\ITEMooTo delarray (latex-tools) + plext (platex) -> plextdelarray (platex-tools) +\ITEMxoTo colortbl + plext (platex) -> plextcolortbl (maintained here!) +\ITEMoTo everysel (ms) -> pxeverysel (platex-tools) +\ITEMoTo everyshi (ms) -> pxeveryshi (platex-tools) +\ITEMoTo atbegshi (oberdiek) -> pxatbegshi (platex-tools) +\ITEMoTo ftnright (latex-tools) -> pxftnright (platex-tools) +\ITEMxTx pdfpages -> pxpdfpages (maintained here!) +\ITEMoTx pgfrcs (pgf) -> pxpgfrcs (maintained here!) +\ITEMoTx pgfcore (pgf) -> pxpgfmark (by Takayuki YATO) \end{itemize} Note that, of course, the list may be adjusted (addition, deletion or replacement) @@ -128,6 +137,7 @@ a comma-separated list of them: \begin{itemize} \item 2018/08/21 v0.2 First CTAN release \item 2018/08/22 v0.3 Improve detection of problematic packages + \item 2018/09/21 v0.5 Add support for \textsf{colortbl} and \textsf{pgf} \end{itemize} \end{document} 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 diff --git a/Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty b/Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty new file mode 100644 index 00000000000..fc15b056043 --- /dev/null +++ b/Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty @@ -0,0 +1,43 @@ +% +% plextarydshln.sty +% written by Hironobu Yamashita (@aminophen) +% +% This package is part of the plautopatch bundle. +% https://github.com/aminophen/plautopatch +% +% This package is expected to be compatible with +% * arydshln.sty +% (????/??/??) +% * plcore.ltx in platex +% (2001/09/26 v1.2a -- 2018/09/02 v1.3) +% + +%% package declaration +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{plextarydshln} + [2018/09/19 v0.1 Merge plext and arydshln] +\RequirePackage{plext} +\RequirePackage{arydshln} + +%% handle package compatibility issues beforehand +% Note: The "arydshln" manual requests users to load +% the following packages *before* arydshln, +% to ensure compatibility: +% array, longtable, colortab, colortbl. +% So, hoping that users are clever enough to load +% them before plextarydshln, load known patches +% at this point when they are detected. +%\@ifpackageloaded{array}{\RequirePackage{plextarray}}{} +%\@ifpackageloaded{colortbl}{\RequirePackage{plextcolortbl}}{} + +%% patching internal code for arydshln.sty and plext.sty +% +\let\adl@p@array\p@array +\def\p@array{% + \adl@everyvbox\everyvbox + \everyvbox{\adl@arrayinit \the\adl@everyvbox \everyvbox\adl@everyvbox}% + \adl@p@array} +% +%% done + +\endinput diff --git a/Master/texmf-dist/tex/latex/plautopatch/plextcolortbl.sty b/Master/texmf-dist/tex/latex/plautopatch/plextcolortbl.sty new file mode 100644 index 00000000000..2a5c09a594f --- /dev/null +++ b/Master/texmf-dist/tex/latex/plautopatch/plextcolortbl.sty @@ -0,0 +1,39 @@ +% +% plextcolortbl.sty +% written by Hironobu Yamashita (@aminophen) +% +% This package is part of the plautopatch bundle. +% https://github.com/aminophen/plautopatch +% +% This package is expected to be compatible with +% * colortbl.sty +% (2012/06/21 v1.0b -- 2018/05/02 v1.0c) +% * plext.sty in platex +% (2001/09/26 v1.2 -- 2018/09/20 v1.2j) +% + +%% package declaration +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{plextcolortbl} + [2018/09/19 v0.1a Merge plext and colortbl] +\RequirePackage{plextarray}% colortbl requires array +\RequirePackageWithOptions{colortbl} + +%% patching internal code for colortbl.sty +% +\AtBeginDocument{% + % recover \@tabarray from plextarray.sty + \def\@tabarray{\@ifnextchar<\p@tabarray{\p@tabarray<Z>}} + % change \p@tabarray instead + \expandafter\def\expandafter\p@tabarray + \expandafter<\expandafter#\expandafter1\expandafter>\expandafter{% + \expandafter\CT@start\p@tabarray<#1>}% +} +% +\def\endarray{\crcr \egroup \egroup + \@end@alignbox %% added from plext.sty + \@arrayright \gdef\@preamble{}\CT@end}% +% +%% done + +\endinput diff --git a/Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty b/Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty index 3eb6ef13f34..43c8b274e8e 100644 --- a/Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty +++ b/Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty @@ -5,9 +5,11 @@ % This package is part of the plautopatch bundle. % https://github.com/aminophen/plautopatch % -% This package `pxpdfpages.sty' is based on: -% * pdfpages.sty (2017/10/31 v0.5l) -% * plcore.ltx in platex (2018/05/13 v1.2z) +% This package is expected to be compatible with +% * pdfpages.sty +% (2015/07/19 v0.5a -- 2017/10/31 v0.5l) +% * plcore.ltx in platex +% (2001/09/26 v1.2a -- 2018/09/02 v1.3) % %% package declaration diff --git a/Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty b/Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty new file mode 100644 index 00000000000..578e26de0b6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/plautopatch/pxpgfrcs.sty @@ -0,0 +1,34 @@ +% +% pxpgfrcs.sty +% written by Hironobu Yamashita (@aminophen) +% +% This package is part of the plautopatch bundle. +% https://github.com/aminophen/plautopatch +% + +%% package declaration +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{pxpgfrcs} + [2018/09/21 v0.1] +\RequirePackage{pgfrcs} + +% Note: I chose the name "pxpgfrcs.sty" +% (instead of "pgfutil-platex.def") because +% * "pgfrcs.sty" is the only package +% which contains \input pgfutil-latex.def. +% * It is not common for LaTeX users to use +% 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{% + \yoko %%% add \yoko + \unhbox\pgfutil@abb% + \hskip-\pgf@temp\relax% + #1% + }% +}% + +\endinput |