summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tablvar
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-02 22:49:09 +0000
committerKarl Berry <karl@freefriends.org>2019-05-02 22:49:09 +0000
commitfc9aebc5bf923b3e26bd4157f786523ff49d2cbe (patch)
tree92d3f3ded101be120864231d91589d6c9048eab1 /Master/texmf-dist/tex/latex/tablvar
parent292007ab492194a65a171de46d4a29441ccf26ee (diff)
tablvar (22apr19)
git-svn-id: svn://tug.org/texlive/trunk@50949 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tablvar')
-rw-r--r--Master/texmf-dist/tex/latex/tablvar/tablvar.sty19
1 files changed, 5 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/tablvar/tablvar.sty b/Master/texmf-dist/tex/latex/tablvar/tablvar.sty
index 94abb8cdccd..41246ced278 100644
--- a/Master/texmf-dist/tex/latex/tablvar/tablvar.sty
+++ b/Master/texmf-dist/tex/latex/tablvar/tablvar.sty
@@ -22,8 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{tablvar}
- [11/11/2018 v1.0 .dtx tablvar file]
-%% \DescribeEnv{tablvar}
+ [22/04/2019 v1.1 .dtx tablvar file]
@@ -45,7 +44,6 @@
\RequirePackage{pst-node}
}
-
\newlength{\intervalwidth}
\setlength{\intervalwidth}{2.5em} % largeur des "intervalles"
@@ -65,7 +63,6 @@
\definecolor{tvbarrecolor}{gray}{0.7}
-
\newcommand*{\fleche}[2]{
\ifthenelse{\boolean{tikz}}{
\tikz[remember picture,overlay]{\draw[->,>=stealth,
@@ -105,7 +102,6 @@
}
}
-
\newcounter{ligne} % numéro de ligne
\newcounter{noeud} % numéro du nœud
\newcounter{numvr} % numéro de la valeur remarquable
@@ -123,13 +119,12 @@
\newcounter{ZIstar} % numéro de ZI pour la commande \ZI*
\newcounter{ZIvarlignes} % dernière ligne des variations
-
\newcolumntype{i}[1]{>{\centering\arraybackslash $}p{#1}<{$}}
% nouveau type de colonne i pour les intervalles
\newcommand{\tablvarinit}{
+ \setlength{\extrarowheight}{0pt} % paramètre de l'extension array
\renewcommand{\arraystretch}{\tablvarstretch}
- % la redéfinition de \arraystretch sera locale dans tablvar
\setcounter{ligne}{0}
\setcounter{numvr}{0}
}
@@ -175,13 +170,12 @@
}
}{\end{array}}
-
\newcounter{loop@counter}
-\newcommand{\tvloop}[2]{%
+\newcommand{\varloop}[2]{%
\setcounter{loop@counter}{#1}
\addtocounter{loop@counter}{-1}% on boucle 1 fois de moins que #1
\ifthenelse{\value{loop@counter}=0}{}{%
- #2 \tvloop{\value{loop@counter}}{#2}%
+ #2 \varloop{\value{loop@counter}}{#2}%
}
}
@@ -192,7 +186,7 @@
\multido{\I=1+1}{\themaxdiscont}{\setcounter{discont\I}{0}}
\setcounter{ZIvarlignes}{#1} % nécessaire pour \ZIh
% boucle : on exécute le code #2 un nb de fois égal à (#1)-1
- \tvloop{#1}{%
+ \varloop{#1}{%
\setcounter{noeud}{0}\setcounter{numvr}{0}\setcounter{ZI}{0}
% à chaque boucle on réinitialise certains compteurs
\stepcounter{ligne} % le numéro de ligne est incrémenté
@@ -218,7 +212,6 @@
\\ % dernier retour ligne du tableau
}
-
\newcommand*{\@pos}[3][c]{
\stepcounter{noeud}
\ifthenelse{\theligne=#2}{
@@ -238,7 +231,6 @@
\newcommand*{\vdecal}[2]{\smash{\raisebox{#1}{$#2$}}}
-
\newcommand*{\bb}{\kern1pt\vrule\kern1pt\vrule\kern1pt}
\newcommand*{\barre}[1][]{\makebox[0pt]{$#1$}
@@ -279,7 +271,6 @@
}
}
-
\newcommand{\ZIc}{\discont \cellcolor[gray]{0.7}}
\newcommand*{\@ZI}[1][0pt]{%