summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/platex-tools/plarray.sty
blob: 62221391eb370ba566b3292bd5332b040e0062e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%
% plarray.sty
% written by Hironobu Yamashita (@aminophen)
%
% This package is part of the platex-tools bundle.
% https://github.com/aminophen/platex-tools
%
% This package is expected to be compatible with
%   * array.sty in latex-tools
%     (2016/10/06 v2.4d -- 2018/09/13 v2.4i)
%   * plcore.ltx in platex
%     (2001/09/26 v1.2a -- 2018/09/02 v1.3)
%

\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{plarray}
  [2018/09/18 v0.1f Tabular extension package for pLaTeX/upLaTeX]
\RequirePackage{array}

%% patching internal code for array.sty
%
%% remove extra \xkanjiskip (pLaTeX2e 2016/04/17)
\@ifl@t@r{\pfmtversion}{2016/04/17}
  {\expandafter\@firstoftwo}
  {\expandafter\@secondoftwo}
{% = for pLaTeX2e 2016/04/17 or newer
\def\@tabular{%
  \leavevmode \null
  \hbox \bgroup $\col@sep\tabcolsep \let\d@llarbegin\begingroup
                                    \let\d@llarend\endgroup
  \@tabarray}
\def\endtabular{\endarray $\egroup\null}
\expandafter \let \csname endtabular*\endcsname = \endtabular
}% =
{% = for pLaTeX2e 2006/11/10 or older
% nothing to be done
}% =
%
%% inhibit JFM glue around tabular cell components (pLaTeX2e 2018/03/09)
\@ifl@t@r{\pfmtversion}{2017/07/29}
  {\expandafter\@firstoftwo}
  {\expandafter\@secondoftwo}
{% = for pLaTeX2e 2017/07/29 or newer
% first, provide old definition; there are some known incompatibility
% compared to LaTeX, pLaTeX or array
\def\insert@column{%
   \the@toks \the \@tempcnta
   \mbox{}\inhibitglue \ignorespaces \@sharp \unskip \unskip
   \the@toks \the \count@ \relax}
% if both macros are available, override with new definition
% (= pLaTeX2e 2018/03/09 or later, built on e-(u)pTeX 180226)
\ifx\pltx@next@inhibitglue\@undefined\else
  \ifx\removejfmglue\@undefined\else
    \def\insert@column{%
       \the@toks \the \@tempcnta
       \relax \pltx@next@inhibitglue
       \ignorespaces \@sharp \unskip \removejfmglue
       \the@toks \the \count@ \relax}
  \fi
\fi
}% =
{% = for pLaTeX2e 2017/05/05 or older
% nothing to be done
}% =
%
%% done

%% all done

\endinput