summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cellspace/cellspace.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-06 03:00:48 +0000
committerNorbert Preining <norbert@preining.info>2022-01-06 03:00:48 +0000
commit55032f1ad7128dcf6493e798424f4ade02c923a7 (patch)
tree10ba73ec0f911b4bcf9947f34fda4efc3a9791b5 /macros/latex/contrib/cellspace/cellspace.sty
parentc03c0d515f1bfbd111d40e78805db4696e080fb8 (diff)
CTAN sync 202201060300
Diffstat (limited to 'macros/latex/contrib/cellspace/cellspace.sty')
-rw-r--r--macros/latex/contrib/cellspace/cellspace.sty29
1 files changed, 23 insertions, 6 deletions
diff --git a/macros/latex/contrib/cellspace/cellspace.sty b/macros/latex/contrib/cellspace/cellspace.sty
index 8a7735490b..76a7db240a 100644
--- a/macros/latex/contrib/cellspace/cellspace.sty
+++ b/macros/latex/contrib/cellspace/cellspace.sty
@@ -1,12 +1,12 @@
-% (C) 2006-2019 Josselin Noirel
+% (C) 2006-2022 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 .
+% https://www.latex-project.org/lppl/ .
%
-\def \filedate {2019/03/11}%
-\def \fileversion {v1.8.1}%
+\def \filedate {2022/01/04}%
+\def \fileversion {v1.9.0}%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cellspace}%
@@ -20,6 +20,22 @@
% 2. Check the definitions of \@startpbox and \@endpbox
% from array.sty
+\@ifpackagelater{array}{2021/04/20}{%
+ % New version of \@endpbox
+ % Includes a \par
+ \CheckCommand*{\@startpbox}[1]{%
+ \bgroup
+ \color@begingroup
+ \setlength\hsize{#1}%
+ \@arrayparboxrestore
+ \everypar{%
+ \vrule \@height \ht\@arstrutbox \@width \z@
+ \everypar{}}%
+ }%
+ %
+ \CheckCommand*{\@endpbox}%
+ {\@finalstrut \@arstrutbox \par \color@endgroup \egroup\hfil}%
+}{%
\@ifpackagelater{array}{2018/12/30}{%
% New versions of \@startpbox / \@endpbox
% Includes a \color@...group
@@ -47,7 +63,7 @@
}%
%
\CheckCommand*{\@endpbox}{\@finalstrut \@arstrutbox \egroup \hfil}%
-}
+}}
% New version of array.sty
@@ -107,6 +123,7 @@
\expandafter
\egroup
\ifcellspace@
+ \unless \ifdim \cellspace@lastdp = -1000pt %
% Save the height of the first line
\global \cellspace@firstht = \ht\@tempboxa
\setbox \@tempboxa = \vbox {%
@@ -130,7 +147,7 @@
\nointerlineskip
\hbox{\vrule height 0pt depth \@tempdima width 0pt }%
}%
- \fi
+ \fi \fi
\unvbox \@tempboxa
\egroup
\hfil