From 358efc294299fa1b336a63da305121fb8b71447b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 27 Sep 2022 03:02:45 +0000 Subject: CTAN sync 202209270302 --- macros/latex-dev/required/tools/array.dtx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'macros/latex-dev/required/tools/array.dtx') diff --git a/macros/latex-dev/required/tools/array.dtx b/macros/latex-dev/required/tools/array.dtx index c9f77d77a3..4b163b5f18 100644 --- a/macros/latex-dev/required/tools/array.dtx +++ b/macros/latex-dev/required/tools/array.dtx @@ -33,7 +33,7 @@ %<+package>\DeclareCurrentRelease{}{2020-10-01} %<+package> %<+package>\ProvidesPackage{array} -%<+package> [2022/03/10 v2.5f Tabular extension package (FMi)] +%<+package> [2022/09/04 v2.5g Tabular extension package (FMi)] % % \fi % @@ -1727,14 +1727,20 @@ % % For that reason the new implementation does the centering % manually: First we check the height of the cell and if that is -% less or equal to =\ht\@arstrutbox= we assume that this is a +% less or equal to =\ht\strutbox= we assume that this is a % single line cell. In that case we don't do any vertical maneuvre % and simply output the box, i.e., make it behave like a single % line p-cell. +% +% We use the height of \cs{strutbox} not \cs{@arstrutbox} in the comparison, +% because \cs{box}\cs{ar@mcellbox} does not have any strut +% incorporated and if \cs{arraystretch} is made very +% small the test would otherwise incorrectly assume a multi-line cell. % \changes{v2.4f}{2017/11/04}{Managing m-cells without \cs{vcenter}} +% \changes{v2.5g}{2022/09/04}{Test against \cs{strutbox} height (gh/766)} % \begin{macrocode} \def\ar@align@mcell{% - \ifdim \ht\ar@mcellbox > \ht\@arstrutbox + \ifdim \ht\ar@mcellbox > \ht\strutbox % \end{macrocode} % Otherwise we realign vertically by lowering the box. The question % is how much do we need to move down? If there is any -- cgit v1.2.3