summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-09-21 21:06:46 +0000
committerKarl Berry <karl@freefriends.org>2018-09-21 21:06:46 +0000
commit9444430d73ece7ecf9adaf5b3f4ee373896f95be (patch)
tree79a8e8307bed626eb6e38d9d354785eb4daf203f /Master/texmf-dist/tex/latex/platex-tools/plextarray.sty
parent9cd967498d516cb93e67b0e4aea10cc481204052 (diff)
platex-tools (21sep18)
git-svn-id: svn://tug.org/texlive/trunk@48722 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/platex-tools/plextarray.sty')
-rw-r--r--Master/texmf-dist/tex/latex/platex-tools/plextarray.sty16
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty b/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty
index cc837edc6c5..3e1f3c207c6 100644
--- a/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty
+++ b/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty
@@ -9,24 +9,30 @@
% * array.sty in latex-tools
% (2016/10/06 v2.4d -- 2018/09/13 v2.4i)
% * plext.sty in platex
-% (2001/09/26 v1.2 -- 2018/09/09 v1.2i)
+% (2001/09/26 v1.2 -- 2018/09/20 v1.2j)
% Largely based on lltjext.sty from LuaTeX-ja project.
%
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{plextarray}
- [2018/09/18 v1.1b Tabular extension package for plext and array]
+ [2018/09/20 v1.1c Tabular extension package for plext and array]
\RequirePackage{plext}
\RequirePackage{plarray}
%% save definitions from array.sty
+% the <dir> option will be handled later in \@tabarray
\def\array{\col@sep\arraycolsep
\def\d@llarbegin{$}\let\d@llarend\d@llarbegin\def\@halignto{}%
\@tabarray}
\def\tabular{\def\@halignto{}\@tabular}
-\expandafter\def\csname tabular*\endcsname#1{%
- \setlength\dimen@{#1}%
- \edef\@halignto{to\the\dimen@}\@tabular}
+%% merged definitions from array.sty and plext.sty
+% take <dir> option first as in plext.sty,
+% which will be passed to \@tabarray
+\@namedef{tabular*}{\@ifnextchar<%>
+ {\p@stabular}{\p@stabular<Z>}}
+\def\p@stabular<#1>#2{%
+ \setlength\dimen@{#2}%
+ \edef\@halignto{to\the\dimen@}\@tabular<#1>}
%% patching internal code for array.sty and plext.sty
%