diff options
Diffstat (limited to 'Master/texmf-dist/tex')
8 files changed, 19 insertions, 405 deletions
diff --git a/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty b/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty index f77c4e0b8a8..5fd92ce6170 100644 --- a/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty +++ b/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty @@ -8,10 +8,10 @@ \NeedsTeXFormat{LaTeX2e}% not pLaTeX2e on purpose! \ProvidesPackage{plautopatch} - [2020/09/27 v0.9j Automated patches for pLaTeX/upLaTeX] + [2020/10/14 v0.9k Automated patches for pLaTeX/upLaTeX] \ifx\pfmtname\@undefined - \PackageWarningNoLine{plautopatch}{% + \PackageInfo{plautopatch}{% This package is meant for pLaTeX/upLaTeX,\MessageBreak you will not need it.} \expandafter\endinput @@ -195,7 +195,7 @@ % register patches -\platpc@patch@after{doc}{pldocverb}% (maintained here!) +\platpc@patch@after{doc}{pldocverb}% platex-tools \ifx\enablecjktoken\@undefined \platpc@patch@after{tracefnt}{ptrace}% platex \else @@ -205,7 +205,7 @@ \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@both{colortbl}{plext}{plextcolortbl}% platex-tools \platpc@patch@after{arydshln}{plarydshln}% (maintained here!) \platpc@patch@after@both{arydshln}{plext}{plextarydshln}% (maintained here!) \platpc@patch@after{siunitx}{plsiunitx}% (maintained here!) @@ -226,19 +226,20 @@ \platpc@patch@before{ftnright}{pxftnright}% platex-tools \platpc@patch@after{multicol}{pxmulticol}% platex-tools \platpc@patch@after{xspace}{pxxspace}% platex-tools -\platpc@patch@after{textpos}{pxtextpos}% (maintained here!) +\platpc@patch@after{textpos}{pxtextpos}% gentombow % --- until LaTeX2e 2020-10-01, patching eso-pic automatically % --- is not supported by pxesopic \@ifl@t@r{\fmtversion}{2020/10/01}% - {\platpc@patch@before{eso-pic}{pxesopic}}{}% (maintained here!) -\platpc@patch@after{pdfpages}{pxpdfpages}% (maintained here!) + {\platpc@patch@before{eso-pic}{pxesopic}}{}% gentombow +\platpc@patch@after{pdfpages}{pxpdfpages}% gentombow \platpc@patch@before{stfloats}{pxstfloats}% pxsttools -- (!!) % --- in most cases, pxjahyper works without explicit options % --- however, in case a user specifies some, delay it % --- [TODO] if \AtBeginDocument{\usepackage{hyperref}} appears, % ---- writing to \jobname.out (= 'jacommentline' feature) % ---- does not work because it's too late. -\AtBeginDocument{\platpc@patch@after{hyperref}{pxjahyper}} +\AtBeginDocument + {\platpc@patch@after{hyperref}{pxjahyper}}% by Takayuki YATO (ZR) % for TikZ/PGF \platpc@patch@after{pgfrcs}{pxpgfrcs}% (maintained here!) diff --git a/Master/texmf-dist/tex/latex/plautopatch/pldocverb.sty b/Master/texmf-dist/tex/latex/plautopatch/pldocverb.sty deleted file mode 100644 index bd1dcb9c84b..00000000000 --- a/Master/texmf-dist/tex/latex/plautopatch/pldocverb.sty +++ /dev/null @@ -1,41 +0,0 @@ -% -% pldocverb.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 -% * doc.sty -% (2004/02/09 v2.1b -- 2020/06/15 v2.1m) -% * plcore.ltx in platex -% (2001/09/26 v1.2a -- 2020/03/05 v1.3e) -% - -%% package declaration -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{pldocverb} - [2018/11/25 v0.2 doc package for pLaTeX/upLaTeX] -\RequirePackage{doc} -% doc.sty conditionally requires multicol.sty without passing options -\IfFileExists{pxmulticol.sty}{\RequirePackage{pxmulticol}}{} - -%% enable \xkanjiskip insertion, -%% while preserving beginning space characters (pLaTeX2e 2017/10/28) -\@ifl@t@r{\pfmtversion}{2017/10/28}{\@firstoftwo}{\@secondoftwo} -{% = for pLaTeX2e 2017/10/28 or newer -\def\verb{\relax\ifmmode\hbox\else\leavevmode\vadjust{}\fi - \bgroup \let\do\do@noligs \verbatim@nolig@list - \ttfamily \verb@eol@error \let\do\@makeother \dospecials - \@ifstar{\@sverb}{\@vobeyspaces \frenchspacing \@sverb}} -}% = -{% = for pLaTeX2e 2017/09/26 or older -\def\verb{\relax\ifmmode\hbox\else\leavevmode\fi - \bgroup \let\do\do@noligs \verbatim@nolig@list - \ttfamily \verb@eol@error \let\do\@makeother \dospecials - \@ifstar{\@sverb}{\@vobeyspaces \frenchspacing \@sverb}} -}% = -% -%% done - -\endinput diff --git a/Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty b/Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty index 2ccdc865edc..89a019e639d 100644 --- a/Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty +++ b/Master/texmf-dist/tex/latex/plautopatch/plextarydshln.sty @@ -9,7 +9,7 @@ % * arydshln.sty % (2004/08/31 v1.71 -- 2019/02/21 v1.76) % * plext.sty in platex -% (2001/09/26 v1.2 -- 2019/09/29 v1.2l) +% (2001/09/26 v1.2 -- 2020/10/07 v1.2m) % %% package declaration diff --git a/Master/texmf-dist/tex/latex/plautopatch/plextcolortbl.sty b/Master/texmf-dist/tex/latex/plautopatch/plextcolortbl.sty deleted file mode 100644 index 4519b99e24f..00000000000 --- a/Master/texmf-dist/tex/latex/plautopatch/plextcolortbl.sty +++ /dev/null @@ -1,39 +0,0 @@ -% -% 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 -- 2020/01/04 v1.0e) -% * plext.sty in platex -% (2001/09/26 v1.2 -- 2019/09/29 v1.2l) -% - -%% 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/pxesopic.sty b/Master/texmf-dist/tex/latex/plautopatch/pxesopic.sty deleted file mode 100644 index f020501e947..00000000000 --- a/Master/texmf-dist/tex/latex/plautopatch/pxesopic.sty +++ /dev/null @@ -1,177 +0,0 @@ -% -% pxesopic.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 -% * eso-pic.sty -% ????/??/?? v?.? -- 2018/04/12 v2.0h -% -% -------------------------------------------------------------- -% [Note] -% The package ``pxesopic.sty'' relies heavily on internals -% of ``plautopatch.sty'' -% -------------------------------------------------------------- -% - -%% package declaration -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{pxesopic} - [2020/09/27 v0.2a Patch to eso-pic for tombow] - -%% preparations -\def\pxesop@pkgname{pxesopic} -\def\pxesop@error{\PackageError\pxesop@pkgname} -\def\pxesop@warn{\PackageWarningNoLine\pxesop@pkgname} -\let\pxesop@debug\@gobble -\def\pxesop@debug#1{\typeout{\pxesop@pkgname: [DEBUG] #1}}% for debug - -%% hooks -\ifx\declare@file@substitution\@undefined - % LaTeX2e 2020-02-02 PL5 or older - \RequirePackage{filehook} - \let\pxesop@ExecuteAfterPackage=\AtEndOfPackageFile - \let\pxesop@ExecuteBeforePackage=\AtBeginOfPackageFile -\else - % LaTeX2e 2020-10-01 or newer - \def\pxesop@ExecuteAfterPackage#1{\AddToHook{package/after/#1}} - \def\pxesop@ExecuteBeforePackage#1{\AddToHook{package/before/#1}} -\fi - -%% the contents of \AtBeginShipout is dependent on \iftombow; -%% delay execution of \AtBeginShipout inside ``eso-pic.sty'' -%% until \AtBeginDocument, to support both (u)pLaTeX kernel -%% and ``gentombow.sty'' -\RequirePackage{atbegshi}% eso-pic requires atbegshi -\pxesop@ExecuteBeforePackage{eso-pic}{\pxesop@before} -\pxesop@ExecuteAfterPackage{eso-pic}{\pxesop@after} -% -\def\pxesop@before{% - \let\pxesop@AtBeginShipout\AtBeginShipout - \def\AtBeginShipout##1{\def\pxesop@hook{##1}}% hide it - \pxesop@debug{\noexpand\AtBeginShipout disabled}% - \let\pxesop@before\relax -} -\def\pxesop@after{% - \let\AtBeginShipout\pxesop@AtBeginShipout % restore - \let\pxesop@AtBeginShipout\relax - \pxesop@debug{\noexpand\AtBeginShipout restored}% - \let\@unknownoptionerror\relax %% avoid an error - \pxesop@debug{\noexpand\@unknownoptionerror disabled}% - \let\pxesop@after\relax -} -%% - -%% load it; be careful not to cause unknown option error! -\expandafter\ifx\csname @unknownoptionerror\endcsname - \pxesop@error{Failed to save \noexpand\@unknownoptionerror}\@ehc -\fi -\let\pxesop@unknownoptionerror\@unknownoptionerror -% -\chardef\pxesop@status\z@ -\@ifpackageloaded{plautopatch}{% - \expandafter\ifx\csname platpc@begin@eso-pic\endcsname\relax - % ``plautopatch.sty'' is loaded but the macro is \relax - % => means that ``pxesopic.sty'' is automatically loaded - \chardef\pxesop@status\@ne - \fi -}{} -% -%% pass all options to keyval-style ``eso-pic.sty'' -\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{eso-pic}} -\ProcessOptions\relax -\RequirePackage{eso-pic} -% -%% recover the error -\ifnum\pxesop@status>\z@ % auto - \def\pxesop@pkgtohook{eso-pic}% - % note that ``plautopatch.sty'' discards the hook - % on LaTeX2e 2020-02-02 PL5 or older - \ifx\declare@file@substitution\@undefined - \let\pxesop@pkgtohook\pxesop@pkgname - % throw an error for unsupported usage - % [FIXME] the error below is actually unnecessary when - % none of ``eso-pic.sty'' options is used; how to detect that? - \pxesop@error{Try loading \pxesop@pkgname\space by hand}\@ehc - \fi -\else - \let\pxesop@pkgtohook\pxesop@pkgname -\fi -\pxesop@ExecuteAfterPackage\pxesop@pkgtohook{% - \let\@unknownoptionerror\pxesop@unknownoptionerror - \pxesop@debug{\noexpand\@unknownoptionerror restored}% -} -%% - -%% delayed to detect \iftombow status -\AtBeginDocument{% - \ifx\tombowtrue\@undefined - \pxesop@warn{Tombow feature unavailable, aborting}% - \fi - \iftombow \pxesop@new \else \pxesop@orig \fi}% -% -%% for \iftombow is FALSE => restore from ``eso-pic.sty'' -\expandafter\def\expandafter\pxesop@orig\expandafter{% - \expandafter\AtBeginShipout\expandafter{\pxesop@hook}} -% -%% for \iftombow is TRUE => redefine by ``pxesopic.sty'' -\def\pxesop@new{% - %% \AtStockLowerLeft: based on TRUE of \ESO@isMEMOIR - \renewcommand\AtStockLowerLeft[1]{% - \begingroup - \@tempdima=-\stockwidth - \advance\@tempdima\paperwidth - \@tempdimb=-\stockheight - \advance\@tempdimb\paperheight - %% specific BEGIN - \advance\@tempdima 1in\relax - \advance\@tempdimb 1in\relax - %% specific END - \AtPageLowerLeft{% - \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){##1}% - }% - \endgroup - }% === - %% \AtStockUpperLeft: based on TRUE of \ESO@isMEMOIR - \renewcommand\AtStockUpperLeft[1]{% - \AtStockLowerLeft{% - \put(0,\LenToUnit{\stockheight}){##1}% - }% - }% === - %% \AtStockCenter: based on TRUE of \ESO@isMEMOIR - \renewcommand\AtStockCenter[1]{% - \AtStockLowerLeft{% - \put(\LenToUnit{.5\stockwidth},\LenToUnit{.5\stockheight}){##1}% - }% - }% - %% \AtTextUpperLeft: same as FALSE of \ESO@isMEMOIR - % (no change) - % - %% \AtBeginShipout: based on TRUE of \ESO@isMEMOIR - \AtBeginShipout{% - \@tempdima=\dimexpr(\stockwidth-\paperwidth)/2\relax - \@tempdimb=-\dimexpr(\stockheight+\paperheight)/2\relax - \ifESO@texcoord - \advance\@tempdimb\paperheight % [FIXME] not sure! - \fi - \nointerlineskip - \AtBeginShipoutUpperLeft{% - \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){% - \ESO@HookIIIBG\ESO@HookIBG\ESO@HookIIBG - \global\let\ESO@HookIIBG\@empty - }% - }% - \AtBeginShipoutUpperLeftForeground{% - \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){% - \ESO@HookIFG\ESO@HookIIFG\ESO@HookIIIFG - \global\let\ESO@HookIIFG\@empty - }% - }% - }% === -} -%% - -\endinput -%% EOF diff --git a/Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty b/Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty deleted file mode 100644 index 36b796cf28a..00000000000 --- a/Master/texmf-dist/tex/latex/plautopatch/pxpdfpages.sty +++ /dev/null @@ -1,51 +0,0 @@ -% -% pxpdfpages.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 -% * pdfpages.sty -% (2015/07/19 v0.5a -- 2020/01/28 v0.5q) -% * plcore.ltx in platex -% (2001/09/26 v1.2a -- 2020/03/05 v1.3e) -% - -%% package declaration -\NeedsTeXFormat{pLaTeX2e} -\ProvidesPackage{pxpdfpages} - [2018/08/20 v0.1 Patch to pdfpages for (u)pLaTeX] - -%% preparations -\def\pxpdpg@pkgname{pxpdfpages} -\def\pxpdpg@warn{\PackageWarningNoLine\pxpdpg@pkgname} -\def\pxpdpg@info{\PackageInfo\pxpdpg@pkgname} - -%% load it -\RequirePackageWithOptions{pdfpages} -\RequirePackage{pxatbegshi}% pdfpages requires atbegshi - -%% patch internal for pdfpages to work with tombow -%% Note: this code should be copied to gentombow.sty! -\def\pxpdpg@patch@pdfpages{% - \RequirePackage{etoolbox} - \patchcmd{\AM@output}{% - \setlength{\@tempdima}{\AM@xmargin}% - \edef\AM@xmargin{\the\@tempdima}% - \setlength{\@tempdima}{\AM@ymargin}% - \edef\AM@ymargin{\the\@tempdima}% - }{% - \setlength{\@tempdima}{\AM@xmargin\iftombow+1in\fi}% - \edef\AM@xmargin{\the\@tempdima}% - \setlength{\@tempdima}{\AM@ymargin\iftombow-1in\fi}% - \edef\AM@ymargin{\the\@tempdima}% - } - {\pxpdpg@info{Patch for pdfpages applied}} - {\pxpdpg@warn{Patch for pdfpages failed}}% - } -\AtBeginDocument{\@ifpackageloaded{pdfpages}{\pxpdpg@patch@pdfpages}{}} - -%% all done - -\endinput 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{% diff --git a/Master/texmf-dist/tex/latex/plautopatch/pxtextpos.sty b/Master/texmf-dist/tex/latex/plautopatch/pxtextpos.sty deleted file mode 100644 index c6e7cf5fe0f..00000000000 --- a/Master/texmf-dist/tex/latex/plautopatch/pxtextpos.sty +++ /dev/null @@ -1,85 +0,0 @@ -% -% pxtextpos.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 -% * textpos.sty -% 2005/10/13 v1.6a -- 2019/04/15 v1.9.1 -% - -%% package declaration -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{pxtextpos} - [2019/11/17 v0.2a Patch to textpos for tombow] - -%% preparations -\def\pxtxtpos@pkgname{pxtextpos} -\def\pxtxtpos@warn{\PackageWarningNoLine\pxtxtpos@pkgname} - -%% load it -\RequirePackageWithOptions{textpos} - -%% check if \iftombow ... \fi is available -\ifx\tombowtrue\@undefined - \pxtxtpos@warn{Tombow feature unavailable, aborting} - \expandafter\endinput -\fi - -%% known definition -\def\pxtxtpos@textblockorigin#1#2{% - \ifTP@abspos - \TP@ox=-1in \addtolength\TP@ox{#1} - \TP@oy=-1in \addtolength\TP@oy{#2} - \ifTP@chatter\typeout{TextBlockOrigin set to #1 x #2}\fi - \else - \PackageError{textpos} - {The \protect\textblockorigin\space command\MessageBreak - may only be used if the package was given\MessageBreak - the`absolute' option when it was invoked} - {If you want to use the \protect\textblockorigin\space command, then - \MessageBreak - invoke the package with the syntax\MessageBreak - \protect\usepackage[absolute]{textpos}} - \fi -} -\@onlypreamble\pxtxtpos@textblockorigin - -%% redefine it -\ifx\textblockorigin\pxtxtpos@textblockorigin\else - \pxtxtpos@warn{% - Command \noexpand\textblockorigin is beyond my knowledge.\MessageBreak - I will apply the patch anyway, but it may break:\MessageBreak - Please report to the author of `\pxtxtpos@pkgname.sty'} -\fi -\def\textblockorigin#1#2{% - \ifTP@abspos - \TP@ox=-1in \addtolength\TP@ox{#1} - \TP@oy=-1in \addtolength\TP@oy{#2} - %%% addition - \iftombow - \addtolength\TP@ox{1in}\addtolength\TP@oy{1in} - \fi - %%% - \ifTP@chatter\typeout{TextBlockOrigin set to #1 x #2}\fi - \else - \PackageError{textpos} - {The \protect\textblockorigin\space command\MessageBreak - may only be used if the package was given\MessageBreak - the`absolute' option when it was invoked} - {If you want to use the \protect\textblockorigin\space command, then - \MessageBreak - invoke the package with the syntax\MessageBreak - \protect\usepackage[absolute]{textpos}} - \fi -} - -%% reset -\ifTP@abspos - \textblockorigin{0pt}{0pt}% -\fi - -\endinput -%% EOF |