summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tabvar
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-22 23:49:18 +0000
committerKarl Berry <karl@freefriends.org>2013-01-22 23:49:18 +0000
commit9b25c2372447eed1435f05be3b6fe77029b9d420 (patch)
tree8c036c68ee4fea65be038f4c6755194774132ba1 /Master/texmf-dist/tex/latex/tabvar
parent48f8b21c2d50f6df0ccca85645ed3d6f7f0dd4a0 (diff)
tabvar 1.7 (22jan13)
git-svn-id: svn://tug.org/texlive/trunk@28908 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tabvar')
-rw-r--r--Master/texmf-dist/tex/latex/tabvar/tabvar.12
-rw-r--r--Master/texmf-dist/tex/latex/tabvar/tabvar.22
-rw-r--r--Master/texmf-dist/tex/latex/tabvar/tabvar.32
-rw-r--r--Master/texmf-dist/tex/latex/tabvar/tabvar.cfg6
-rw-r--r--Master/texmf-dist/tex/latex/tabvar/tabvar.sty31
5 files changed, 37 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.1 b/Master/texmf-dist/tex/latex/tabvar/tabvar.1
index 446f59d0733..038b9c6b80d 100644
--- a/Master/texmf-dist/tex/latex/tabvar/tabvar.1
+++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.1
@@ -2,7 +2,7 @@
%%BoundingBox: -1 -1 25 13
%%HiResBoundingBox: -0.09962 -0.09962 24.0099 12.05476
%%Creator: MetaPost 1.504
-%%CreationDate: 2012.03.15:1730
+%%CreationDate: 2013.01.22:1714
%%Pages: 1
%%BeginProlog
%%EndProlog
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.2 b/Master/texmf-dist/tex/latex/tabvar/tabvar.2
index fa53b277ac3..554abf4984d 100644
--- a/Master/texmf-dist/tex/latex/tabvar/tabvar.2
+++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.2
@@ -2,7 +2,7 @@
%%BoundingBox: -1 -1 25 13
%%HiResBoundingBox: -0.09962 -0.09962 24.0099 12.05476
%%Creator: MetaPost 1.504
-%%CreationDate: 2012.03.15:1730
+%%CreationDate: 2013.01.22:1714
%%Pages: 1
%%BeginProlog
%%EndProlog
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.3 b/Master/texmf-dist/tex/latex/tabvar/tabvar.3
index 6f636cc61c3..62bfb15caeb 100644
--- a/Master/texmf-dist/tex/latex/tabvar/tabvar.3
+++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.3
@@ -2,7 +2,7 @@
%%BoundingBox: -1 -2 25 2
%%HiResBoundingBox: -0.09962 -1.63043 24.0099 1.63043
%%Creator: MetaPost 1.504
-%%CreationDate: 2012.03.15:1730
+%%CreationDate: 2013.01.22:1714
%%Pages: 1
%%BeginProlog
%%EndProlog
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.cfg b/Master/texmf-dist/tex/latex/tabvar/tabvar.cfg
index c0a289c3ec4..2f7f6ff6a5a 100644
--- a/Master/texmf-dist/tex/latex/tabvar/tabvar.cfg
+++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.cfg
@@ -36,6 +36,12 @@
%%
%%\setlength{\TVmaxcolwidth}{\linewidth}
%%
+%% Valeur des espaces verticaux ajout\'es par la commande
+%% |\TVstretch{}|.
+%%
+%%\setlength{\TVextraheight}{2pt}
+%%\setlength{\TVextradepth}{2pt}
+%%
%% Exemples de d\'efinitions de couleurs pour les colonnes `U'
%% o\`u la fonction est non d\'efinie.
%%
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty
index d575c60dbdf..33de640e389 100644
--- a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty
+++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty
@@ -21,11 +21,11 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%%
-%% Copyright (C) Daniel Flipo 2003-2012 <daniel.flipo at free.fr>
+%% Copyright (C) Daniel Flipo 2003-2013 <daniel.flipo at free.fr>
%%
\NeedsTeXFormat{LaTeX2e}[1997/06/01]
\ProvidesFile{tabvar.sty}
- [2012/03/14 v1.61 (Daniel Flipo)]
+ [2013/01/21 v1.7 (Daniel Flipo)]
\newif\ifFlechesMP \FlechesMPfalse
\DeclareOption{FlechesMP}{\FlechesMPtrue}
\DeclareOption{FlechesPS}{\FlechesMPfalse}
@@ -240,7 +240,32 @@
\ifodd\@niveaux\else\advance\@tempdimb by .5\baselineskip\fi
\@pos=1\raisebox{\@tempdimb}{\ensuremath{#1}}%
}
-
+\newsavebox\TVbox
+\newdimen\TVextraheight
+\newdimen\TVextradepth
+\setlength{\TVextraheight}{2pt}
+\setlength{\TVextradepth}{2pt}
+\newdimen\TV@tempa
+\newdimen\TV@tempb
+\newcommand{\TVstretch}[2][0pt]{%
+ \edef\tmp{#1}%
+ \sbox{\TVbox}{\ensuremath{#2}}%
+ \settoheight{\TV@tempa}{\usebox{\TVbox}}%
+ \settodepth {\TV@tempb}{\usebox{\TVbox}}%
+ \ifdim\tmp=0pt
+ \addtolength{\TV@tempa}{\TVextraheight}%
+ \addtolength{\TV@tempb}{\TVextradepth}%
+ \else
+ \ifdim\tmp>0pt
+ \addtolength{\TV@tempa}{\tmp}%
+ \else
+ \addtolength{\TV@tempb}{-\tmp}%
+ \fi
+ \fi
+ \usebox{\TVbox}%
+ \addtolength{\TV@tempa}{\TV@tempb}%
+ \rule[-\TV@tempb]{0pt}{\TV@tempa}%
+}
\newcommand{\TVarraystretch}{1.5}
\setlength{\TVarraycolsep}{1pt}
\newenvironment{tabvar}[1]