texlive[61501] Master/texmf-dist: cellspace (6jan22)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 6 01:20:54 CET 2022


Revision: 61501
          http://tug.org/svn/texlive?view=revision&revision=61501
Author:   karl
Date:     2022-01-06 01:20:54 +0100 (Thu, 06 Jan 2022)
Log Message:
-----------
cellspace (6jan22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/cellspace/README
    trunk/Master/texmf-dist/doc/latex/cellspace/cellspace.pdf
    trunk/Master/texmf-dist/doc/latex/cellspace/cellspace.tex
    trunk/Master/texmf-dist/tex/latex/cellspace/cellspace.sty

Modified: trunk/Master/texmf-dist/doc/latex/cellspace/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/cellspace/README	2022-01-06 00:20:37 UTC (rev 61500)
+++ trunk/Master/texmf-dist/doc/latex/cellspace/README	2022-01-06 00:20:54 UTC (rev 61501)
@@ -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 @@
       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.

Modified: trunk/Master/texmf-dist/doc/latex/cellspace/cellspace.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/cellspace/cellspace.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/cellspace/cellspace.tex	2022-01-06 00:20:37 UTC (rev 61500)
+++ trunk/Master/texmf-dist/doc/latex/cellspace/cellspace.tex	2022-01-06 00:20:54 UTC (rev 61501)
@@ -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 @@
 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 @@
 \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}

Modified: trunk/Master/texmf-dist/tex/latex/cellspace/cellspace.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/cellspace/cellspace.sty	2022-01-06 00:20:37 UTC (rev 61500)
+++ trunk/Master/texmf-dist/tex/latex/cellspace/cellspace.sty	2022-01-06 00:20:54 UTC (rev 61501)
@@ -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 at begingroup
+            \setlength\hsize{#1}%
+            \@arrayparboxrestore
+            \everypar{%
+                  \vrule \@height \ht\@arstrutbox \@width \z@
+                  \everypar{}}%
+      }%
+      %
+      \CheckCommand*{\@endpbox}%
+        {\@finalstrut \@arstrutbox \par \color at endgroup \egroup\hfil}%
+}{%
 \@ifpackagelater{array}{2018/12/30}{%
       % New versions of \@startpbox / \@endpbox
       % Includes a \color at ...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 at lastdp = -1000pt %
       % Save the height of the first line
       \global \cellspace at 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



More information about the tex-live-commits mailing list.