diff options
author | Karl Berry <karl@freefriends.org> | 2007-05-09 13:00:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-05-09 13:00:02 +0000 |
commit | 78a7540609bc03c288ff057f91c96fa611dbc0a9 (patch) | |
tree | 30ed1c53576869610d8107d308d1a245057a517f /Master/texmf-dist/tex | |
parent | 0a9fc0f725c1959e64f5e822812dde9f4d1754bd (diff) |
tabvar 1.1 (8may07)
git-svn-id: svn://tug.org/texlive/trunk@4263 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.1 | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.2 | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.3 | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.cfg | 5 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.sty | 55 |
5 files changed, 44 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.1 b/Master/texmf-dist/tex/latex/tabvar/tabvar.1 index aa3baf850df..226974c1b92 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 0.901 -%%CreationDate: 2006.03.15:1446 +%%CreationDate: 2006.03.17:2017 %%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 9f86821477c..8d7a276f2ae 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 0.901 -%%CreationDate: 2006.03.15:1446 +%%CreationDate: 2006.03.17:2017 %%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 36d4fce3aec..7501bd2e0eb 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 0.901 -%%CreationDate: 2006.03.15:1446 +%%CreationDate: 2006.03.17:2017 %%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 05e38557ceb..3282bcdec0a 100644 --- a/Master/texmf-dist/tex/latex/tabvar/tabvar.cfg +++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.cfg @@ -35,6 +35,11 @@ %% %%\setlength{\TVcolorLeftSep}{\TVarraycolsep} %%\setlength{\TVcolorRightSep}{\TVarraycolsep} +%% +%% On peut ajuster comme ci-dessus la couleur des filets +%% tra\c{c}\'es par la commande \barre{}. +%% +%%\definecolor{TVbarrecolor}{gray}{0.7} \endinput %% %% End of file `tabvar.cfg'. diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty index 61906845150..819593ffe94 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-2006 <daniel.flipo@univ-lille1.fr>. +%% Copyright (C) Daniel Flipo 2003-2007 <daniel.flipo@univ-lille1.fr>. %% \NeedsTeXFormat{LaTeX2e}[1997/06/01] \ProvidesFile{tabvar.sty} - [2006/03/14 v1.0 (Daniel Flipo)] + [2007/05/07 v1.1 (Daniel Flipo)] \newif\ifFlechesMP \FlechesMPfalse \DeclareOption{FlechesMP}{\FlechesMPtrue} \DeclareOption{FlechesPS}{\FlechesMPfalse} @@ -130,23 +130,40 @@ \protect\niveau\space sont incorrects}% \fi} \newcommand{\constante}{\FlecheH} -\newcommand{\dbarre}{\ifnum\@niveaux=1 - \@tempdimc=\TVarraystretch\baselineskip - \else - \@tempcnta=\@niveaux - \advance\@tempcnta by -1 - \@tempdimc=\@tempcnta\baselineskip - \@tempdimb=\TVextraheight - \ifdim\@tempdimb<.7\baselineskip - \@tempdimb=.7\baselineskip - \fi - \advance\@tempdimc by \@tempdimb - \advance\@tempdimc by \dp\@arstrutbox - \fi - \rule[-\dp\@arstrutbox]{.5\p@}{\@tempdimc}% - \kern 2\p@ - \rule[-\dp\@arstrutbox]{.5\p@}{\@tempdimc}% - \@soclefalse} +\newcommand{\barre@dth}{% + \ifnum\@niveaux=1 + \@tempdimc=\TVarraystretch\baselineskip + \else + \@tempcnta=\@niveaux + \advance\@tempcnta by -1 + \@tempdimc=\@tempcnta\baselineskip + \@tempdimb=\TVextraheight + \ifdim\@tempdimb<.7\baselineskip + \@tempdimb=.7\baselineskip + \fi + \advance\@tempdimc by \@tempdimb + \advance\@tempdimc by \dp\@arstrutbox + \fi + \@tempdimb=\dp\@arstrutbox} +\newcommand{\dbarre}{% + \barre@dth + \rule[-\@tempdimb]{.5\p@}{\@tempdimc}% + \kern 2\p@ + \rule[-\@tempdimb]{.5\p@}{\@tempdimc}% + \@soclefalse} +\newsavebox{\tab@box} +\definecolor{TVbarrecolor}{gray}{0.7} +\newcommand{\barre}[1]{% + \sbox{\tab@box}{\ensuremath{#1}}% + \barre@dth + \@tempcnta=\@niveaux + \advance\@tempcnta by -\@pos + \advance\@tempdimb by \@tempcnta\baselineskip + \raisebox{-\@tempdimb}[0pt][0pt]{% + \makebox[\wd\tab@box][c]{\color{TVbarrecolor}% + \rule{.5\p@}{\@tempdimc}}}% + \kern-\wd\tab@box\usebox{\tab@box}% +} \newcommand{\discont}[4][0]{% \settowidth{\@tempdimc}{\ensuremath{#2}}% \settowidth{\@tempdimb}{\ensuremath{#4}}% |