diff options
author | Karl Berry <karl@freefriends.org> | 2019-09-05 22:25:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-09-05 22:25:17 +0000 |
commit | 60c2355e3e1171022ea67426855e5c475fc441eb (patch) | |
tree | c632480a337aae7e52c84d1456a84e3a268f0284 /Master/texmf-dist/tex | |
parent | cee5f05c223e6cd6bd2b375f08ef37bcaf96d87c (diff) |
platex-tools (5sep19)
git-svn-id: svn://tug.org/texlive/trunk@52033 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
5 files changed, 138 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/platex-tools/plarray.sty b/Master/texmf-dist/tex/latex/platex-tools/plarray.sty index 111592705e2..8c797ef59ce 100644 --- a/Master/texmf-dist/tex/latex/platex-tools/plarray.sty +++ b/Master/texmf-dist/tex/latex/platex-tools/plarray.sty @@ -7,7 +7,7 @@ % % This package is expected to be compatible with % * array.sty in latex-tools -% (2016/10/06 v2.4d -- 2018/09/13 v2.4i) +% (2016/10/06 v2.4d -- 2018/11/13 v2.4j) % * plcore.ltx in platex % (2001/09/26 v1.2a -- 2018/09/02 v1.3) % diff --git a/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty b/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty index ee08eb0bbd7..1e706d9a75d 100644 --- a/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty +++ b/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty @@ -7,9 +7,9 @@ % % This package is expected to be compatible with % * array.sty in latex-tools -% (2016/10/06 v2.4d -- 2018/09/13 v2.4i) +% (2016/10/06 v2.4d -- 2018/11/13 v2.4j) % * plext.sty in platex -% (2001/09/26 v1.2 -- 2018/09/20 v1.2j) +% (2001/09/26 v1.2 -- 2018/10/07 v1.2k) % Largely based on lltjext.sty from LuaTeX-ja project. % diff --git a/Master/texmf-dist/tex/latex/platex-tools/plextdelarray.sty b/Master/texmf-dist/tex/latex/platex-tools/plextdelarray.sty index 03b6a1ccfff..1c6b097c2c9 100644 --- a/Master/texmf-dist/tex/latex/platex-tools/plextdelarray.sty +++ b/Master/texmf-dist/tex/latex/platex-tools/plextdelarray.sty @@ -9,7 +9,7 @@ % * delarray.sty in latex-tools % (2014/10/28 v1.01) % * plext.sty in platex -% (2001/09/26 v1.2 -- 2018/09/20 v1.2j) +% (2001/09/26 v1.2 -- 2018/10/07 v1.2k) % \NeedsTeXFormat{pLaTeX2e} diff --git a/Master/texmf-dist/tex/latex/platex-tools/pxmulticol.sty b/Master/texmf-dist/tex/latex/platex-tools/pxmulticol.sty index a55341af957..63274eb94e4 100644 --- a/Master/texmf-dist/tex/latex/platex-tools/pxmulticol.sty +++ b/Master/texmf-dist/tex/latex/platex-tools/pxmulticol.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{pLaTeX2e} \ProvidesPackage{pxmulticol} - [2018/11/25 v0.2 footnote layout package for pLaTeX] + [2018/11/25 v0.2 multicol package for pLaTeX] \RequirePackageWithOptions{multicol} %% patching internal code for multicol.sty diff --git a/Master/texmf-dist/tex/latex/platex-tools/pxxspace.sty b/Master/texmf-dist/tex/latex/platex-tools/pxxspace.sty new file mode 100644 index 00000000000..1a8207536c2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/platex-tools/pxxspace.sty @@ -0,0 +1,133 @@ +% +% pxxspace.sty +% written by Takayuki Yato (ZR) +% +% This package is distributed as part of the platex-tools bundle +% maintained by Hironobu Yamashita +% by courtesy of the original author. +% https://github.com/aminophen/platex-tools +% +% Original copyright notice: +% -------------------------------------------------- +% Copyright (c) 2019 Takayuki YATO (aka. "ZR") +% GitHub: https://github.com/zr-tex8r +% Twitter: @zr_tex8r +% +% This package is distributed under the MIT License. +% -------------------------------------------------- +% +% This package is expected to be compatible with +% * xspace.sty in latex-tools +% (2009/10/20 v1.13 -- 2014/10/28 v1.13) +% + +%% package declaration +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{pxxspace} + [2019/04/30 v0.2 Patch for xspace for pLaTeX/upLaTeX] +\def\pxxs@pkgname{pxxspace} + +%--------------------------------------- preparations + +%% e-TeX is required +\RequirePackage{etoolbox}[2011/01/03]% v2.1 +\ifx\numdef\@undefined \endinput \fi + +%% packages +\RequirePackage{xspace}[2009/10/20]% v1.13 + +%% check if patchable +\chardef\pxxs@tmpa=\@ne +\ifpatchable\@xspace{% + \@xspace@lettoken@if@letter@TF +}{}{\chardef\pxxs@tmpa=\z@} +\ifpatchable\@xspace@eTeX@setup{% + \begingroup +}{}{\chardef\pxxs@tmpa=\z@} +\ifnum\pxxs@tmpa=\z@ + \PackageError\pxxs@pkgname + {Failure in patching}% + {Package loading is aborted.\MessageBreak\@ehc}% +\expandafter\endinput\fi\relax + +%--------------------------------------- helpers + +%% packages +\RequirePackage{pdftexcmds} + +%% engine check +\newif\ifpxxs@uptex +\pdf@isprimitive\forcecjktoken\forcecjktoken{\pxxs@uptextrue}{} + +%% \pxxs@forcecjktoken +\ifpxxs@uptex + \let\pxxs@forcecjktoken\forcecjktoken +\else + \let\pxxs@forcecjktoken\relax +\fi + +%--------------------------------------- adjustments to xspace + +%% \pxxs@jt@XXX : probe tokens +\begingroup + \def\do#1#2#3{% + \kcatcode#2=#3\relax \kansujichar1=#2\relax + \edef\next{% + \global\let\noexpand#1=\scantokens\expandafter{\kansuji1}% + }\next} + \pxxs@forcecjktoken + \everyeof{\noexpand}% disable EOF marker + \do\pxxs@jt@kanji{\jis"3441}{16}% + \do\pxxs@jt@kana{\jis"2422}{17}% + \do\pxxs@jt@other{\jis"2123}{18}% + \ifpxxs@uptex + \do\pxxs@jt@hangul{\ucs"D55C}{19}% + \fi +\endgroup + +%% \pxxs@lettoken@if@jachar{<true>}{<false>} +% Checks if \@let@token is a ja-character token. +% NB: Here \@let@token might be an \outer-token. +\let\@let@token\relax +\def\pxxs@tmpa#1#2{\unexpanded{% + \ifcat\noexpand\@let@token#1\expandafter\@firstoftwo + \else \expandafter#2\fi}} +\edef\pxxs@lettoken@if@jachar{% + \pxxs@tmpa\pxxs@jt@kana\pxxs@lettoken@if@jachar@a} +\edef\pxxs@lettoken@if@jachar@a{% + \pxxs@tmpa\pxxs@jt@kanji\pxxs@lettoken@if@jachar@b} +\edef\pxxs@lettoken@if@jachar@b{% + \pxxs@tmpa\pxxs@jt@other\pxxs@lettoken@if@jachar@c} +\edef\pxxs@lettoken@if@jachar@c{% + \pxxs@tmpa\pxxs@jt@hangul\@secondoftwo} +\unless\ifpxxs@uptex + \let\pxxs@lettoken@if@jachar@c\@secondoftwo +\fi + +%% \pxxs@precheck +% Placed just before \@xspace@lettoken@if@letter@TF to modify the +% behavior of \@xspace so that spaces are omitted if the following +% token is a ja-character. +\def\pxxs@precheck#1{% + \pxxs@lettoken@if@jachar{\@gobbletwo}{#1}% +} + +%% patch \@xspace +\patchcmd\@xspace{%from + \@xspace@lettoken@if@letter@TF +}{%to + \pxxs@precheck + \@xspace@lettoken@if@letter@TF +}{}{} + +%% patch \@xspace@eTeX@setup +\patchcmd\@xspace@eTeX@setup{%from + \begingroup +}{%to + \begingroup + \pxxs@forcecjktoken +}{}{} + +%--------------------------------------- done +\endinput +%% EOF |