summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cellspace
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-13 20:57:45 +0000
committerKarl Berry <karl@freefriends.org>2019-03-13 20:57:45 +0000
commitc949589f88bf58fd53126ff26270f64ac12bb9be (patch)
tree0d3310facfdc0e3de55753d9a27f4b33855ee1e3 /Master/texmf-dist/tex/latex/cellspace
parent7c08f82402f3763821195125e9f7ed3875a8b834 (diff)
cellspace (13mar19)
git-svn-id: svn://tug.org/texlive/trunk@50374 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cellspace')
-rw-r--r--Master/texmf-dist/tex/latex/cellspace/cellspace.sty43
1 files changed, 31 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/cellspace/cellspace.sty b/Master/texmf-dist/tex/latex/cellspace/cellspace.sty
index 393e803ff31..8a7735490b7 100644
--- a/Master/texmf-dist/tex/latex/cellspace/cellspace.sty
+++ b/Master/texmf-dist/tex/latex/cellspace/cellspace.sty
@@ -1,12 +1,12 @@
-% (C) 2006-2017 Josselin Noirel
+% (C) 2006-2019 Josselin Noirel
%
% Package cellspace: Ensuring a minimal spacing of table cells.
%
% This material is subject to the LaTeX Project Public License. See
% http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html .
%
-\def \filedate {2017/08/12}%
-\def \fileversion {v1.7}%
+\def \filedate {2019/03/11}%
+\def \fileversion {v1.8.1}%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cellspace}%
@@ -20,17 +20,36 @@
% 2. Check the definitions of \@startpbox and \@endpbox
% from array.sty
-\CheckCommand*{\@startpbox}[1]{%
- \bgroup
- \setlength\hsize{#1}%
- \@arrayparboxrestore
- \everypar{%
- \vrule \@height \ht\@arstrutbox \@width \z@
- \everypar{}%
- }%
+\@ifpackagelater{array}{2018/12/30}{%
+ % New versions of \@startpbox / \@endpbox
+ % Includes a \color@...group
+ \CheckCommand*{\@startpbox}[1]{%
+ \bgroup
+ \color@begingroup
+ \setlength\hsize{#1}%
+ \@arrayparboxrestore
+ \everypar{%
+ \vrule \@height \ht\@arstrutbox \@width \z@
+ \everypar{}}%
+ }%
+ %
+ \CheckCommand*{\@endpbox}{\@finalstrut \@arstrutbox \color@endgroup \egroup \hfil}%
+}{%
+ % Older versions of \@startpbox / \@endpbox
+ \CheckCommand*{\@startpbox}[1]{%
+ \bgroup
+ \setlength\hsize{#1}%
+ \@arrayparboxrestore
+ \everypar{%
+ \vrule \@height \ht\@arstrutbox \@width \z@
+ \everypar{}%
+ }%
+ }%
+ %
+ \CheckCommand*{\@endpbox}{\@finalstrut \@arstrutbox \egroup \hfil}%
}
-\CheckCommand*{\@endpbox}{\@finalstrut\@arstrutbox \egroup\hfil}
+ % New version of array.sty
% 3. Declare registers and other variables