From 7cac8e69b93b33d6470efe2a228ba37b13a8c818 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 1 May 2021 20:16:45 +0000 Subject: vcell (1may21) git-svn-id: svn://tug.org/texlive/trunk@59039 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/vcell/vcell.sty | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/vcell/vcell.sty b/Master/texmf-dist/tex/latex/vcell/vcell.sty index 7e6c98d5b69..ac1f9e6df06 100644 --- a/Master/texmf-dist/tex/latex/vcell/vcell.sty +++ b/Master/texmf-dist/tex/latex/vcell/vcell.sty @@ -1,5 +1,5 @@ % -% vcell.sty V1.0.1 version (16-May-2020) +% vcell.sty V1.0.2 version (15-April-2021) % % Author: Xavier Dionne % @@ -10,11 +10,13 @@ % https://www.latex-project.org/lppl/lppl-1-3c/ % % Changelog : +% [v 1.0.2] - Fixed a compatibility issue with `calc` % [v 1.0.1] - Fixed an issue where the height was calculated % twice if the cell had a depth \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{vcell}[2020/05/16 v1.0.1] +\ProvidesPackage{vcell}[2021/04/30 v1.0.2] +\def\@cell@setlength#1#2{#1 #2\relax} \newdimen\rowheight \newdimen\rowht \newdimen\rowdp @@ -24,17 +26,17 @@ \def\resetcellcount{% \global\@cellusecount 1\relax\global\@cellcount 1\relax% - \global\setlength\rowht{\arraystretch\ht\strutbox}% - \global\setlength\rowdp{\arraystretch\dp\strutbox}% - \global\setlength\rowheight{\dimexpr\rowht+\rowdp}% + \global\@cell@setlength\rowht{\arraystretch\ht\strutbox}% + \global\@cell@setlength\rowdp{\arraystretch\dp\strutbox}% + \global\@cell@setlength\rowheight{\dimexpr\rowht+\rowdp}% } \resetcellcount \def\savecellheight{% - \ifdim\ht\@celltemp>\rowht\global\setlength{\rowht}{\ht\@celltemp}\fi% - \ifdim\dp\@celltemp>\rowdp\global\setlength{\rowdp}{\dp\@celltemp}\fi% - \ifdim\dimexpr\dp\@celltemp+\ht\@celltemp>\rowheight{\global\setlength{\rowheight}{\dimexpr\dp\@celltemp+\ht\@celltemp}}\fi + \ifdim\ht\@celltemp>\rowht\global\@cell@setlength{\rowht}{\ht\@celltemp}\fi% + \ifdim\dp\@celltemp>\rowdp\global\@cell@setlength{\rowdp}{\dp\@celltemp}\fi% + \ifdim\dimexpr\dp\@celltemp+\ht\@celltemp>\rowheight{\global\@cell@setlength{\rowheight}{\dimexpr\dp\@celltemp+\ht\@celltemp}}\fi } \long\def\savecellbox#1{% \global\sbox\@celltemp{\hbox{\ifdim\hsize=\textwidth #1\else \vbox{#1}\fi}}% -- cgit v1.2.3