diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tabvar/tabvar.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.sty | 55 |
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}}% |