summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/vcell
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-01 20:16:45 +0000
committerKarl Berry <karl@freefriends.org>2021-05-01 20:16:45 +0000
commit7cac8e69b93b33d6470efe2a228ba37b13a8c818 (patch)
tree8de36d47e8c37aafb7874a1abf90b9eeafbb51fa /Master/texmf-dist/tex/latex/vcell
parent4718de2492a074c4869e5f6ce79ae0977070960d (diff)
vcell (1may21)
git-svn-id: svn://tug.org/texlive/trunk@59039 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/vcell')
-rw-r--r--Master/texmf-dist/tex/latex/vcell/vcell.sty18
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}}%