From db2bbb25d4bfe57519b4e5c80afb8e2c2af7cec3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 6 Jan 2022 00:20:54 +0000 Subject: cellspace (6jan22) git-svn-id: svn://tug.org/texlive/trunk@61501 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/cellspace/README | 12 ++++++--- .../texmf-dist/doc/latex/cellspace/cellspace.pdf | Bin 336907 -> 337281 bytes .../texmf-dist/doc/latex/cellspace/cellspace.tex | 19 +++++++++----- .../texmf-dist/tex/latex/cellspace/cellspace.sty | 29 ++++++++++++++++----- 4 files changed, 45 insertions(+), 15 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/cellspace/README b/Master/texmf-dist/doc/latex/cellspace/README index 7adfa2eac64..17ccfb6c872 100644 --- a/Master/texmf-dist/doc/latex/cellspace/README +++ b/Master/texmf-dist/doc/latex/cellspace/README @@ -1,9 +1,9 @@ -% (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/ . This package is intended to allow automatic spacing out of the lines of an array. People often complain about text touching the @@ -22,4 +22,10 @@ v1.7: New features as suggested by Bastien Roucaries: (1) Possibility math column independent of the colum name. v1.8.1: Package becomes aware of the latest modifications of the array - package. Also the GitHub project is referenced in the documentation. \ No newline at end of file + package. Also the GitHub project is referenced in the documentation. + +v1.9.0: The new implementation solves a problem with empty + cells for paragraph-type columns (m, p, b) by + testing whether \prevdepth is greater than 1000~pt. + The package has now been made aware of the new + implementation of \@endpbox of array. diff --git a/Master/texmf-dist/doc/latex/cellspace/cellspace.pdf b/Master/texmf-dist/doc/latex/cellspace/cellspace.pdf index 5755b527f5c..fa112117104 100644 Binary files a/Master/texmf-dist/doc/latex/cellspace/cellspace.pdf and b/Master/texmf-dist/doc/latex/cellspace/cellspace.pdf differ diff --git a/Master/texmf-dist/doc/latex/cellspace/cellspace.tex b/Master/texmf-dist/doc/latex/cellspace/cellspace.tex index 5c4da1937e2..e91b2a117f1 100644 --- a/Master/texmf-dist/doc/latex/cellspace/cellspace.tex +++ b/Master/texmf-dist/doc/latex/cellspace/cellspace.tex @@ -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}% \ProvidesFile{cellspace}% [\filedate \space \fileversion \space cellspace documentation (JN)] @@ -371,7 +371,6 @@ be passed to the package to that effect; can be used to provide cellspace's functionality through the \tex{O} column modifier instead of the \tex{S} column modifier. - \section{Bugs and limitations} This package hasn't been heavily tested, so there may be plenty of bugs. @@ -418,8 +417,16 @@ far as I can see, cannot work with \pack{array}. \section{What's new} \begin{description} +\item [v1.9.0] The new implementation solves a problem with empty + cells for paragraph-type columns (\tex{m}, \tex{p}, \tex{b}) by + testing whether \cmd{prevdepth} is greater than 1000~pt (see + example below). The package has now been made aware of the new + implementation of \cmd{@endpbox} of \tex{array} (again). + +\begin{tabular}{S{p{4cm}}} \hline \\ \hline \end{tabular} + \item [v1.8.1] Package becomes aware of the latest version of the - array package + array package. \end{description} \end{document} 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 -- cgit v1.2.3