diff options
author | Norbert Preining <norbert@preining.info> | 2022-11-02 03:09:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-11-02 03:09:43 +0000 |
commit | 2281af8ba8fd52341e706f3979712f3280fcfdad (patch) | |
tree | 5e83a2779b732f03b430cf208b732ce611ee2cff /macros/latex/required/tools/array.dtx | |
parent | 7ad25021e74ea26e33d705fbb402d29aabaf6314 (diff) |
CTAN sync 202211020309
Diffstat (limited to 'macros/latex/required/tools/array.dtx')
-rw-r--r-- | macros/latex/required/tools/array.dtx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/macros/latex/required/tools/array.dtx b/macros/latex/required/tools/array.dtx index c9f77d77a3..4b163b5f18 100644 --- a/macros/latex/required/tools/array.dtx +++ b/macros/latex/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 |