summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tabvar/tabvar.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-05-09 13:00:02 +0000
committerKarl Berry <karl@freefriends.org>2007-05-09 13:00:02 +0000
commit78a7540609bc03c288ff057f91c96fa611dbc0a9 (patch)
tree30ed1c53576869610d8107d308d1a245057a517f /Master/texmf-dist/tex/latex/tabvar/tabvar.sty
parent0a9fc0f725c1959e64f5e822812dde9f4d1754bd (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/latex/tabvar/tabvar.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tabvar/tabvar.sty55
1 files changed, 36 insertions, 19 deletions
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}}%