summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cellspace
diff options
context:
space:
mode:
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