From c949589f88bf58fd53126ff26270f64ac12bb9be Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 13 Mar 2019 20:57:45 +0000 Subject: cellspace (13mar19) git-svn-id: svn://tug.org/texlive/trunk@50374 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/cellspace/cellspace.sty | 43 ++++++++++++++++------ 1 file changed, 31 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex/latex/cellspace') 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 -- cgit v1.2.3