diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/vcell')
-rw-r--r-- | Master/texmf-dist/tex/latex/vcell/vcell.sty | 18 |
1 files changed, 10 insertions, 8 deletions
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 <info@latex-tables.com> % @@ -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}}% |