summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cellspace
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-06 00:20:54 +0000
committerKarl Berry <karl@freefriends.org>2022-01-06 00:20:54 +0000
commitdb2bbb25d4bfe57519b4e5c80afb8e2c2af7cec3 (patch)
treebfec867cb59706a4eba31097b9bf67b5aa2b6446 /Master/texmf-dist/tex/latex/cellspace
parentaa1cd64e23e66321a9d17ade3b9ef9d590acaf2a (diff)
cellspace (6jan22)
git-svn-id: svn://tug.org/texlive/trunk@61501 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cellspace')
-rw-r--r--Master/texmf-dist/tex/latex/cellspace/cellspace.sty29
1 files changed, 23 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/cellspace/cellspace.sty b/Master/texmf-dist/tex/latex/cellspace/cellspace.sty
index 8a7735490b7..76a7db240a4 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-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