diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tabvar/tabvar.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.sty | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty index 39aa7655537..10f29c9812f 100644 --- a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty +++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty @@ -25,7 +25,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1997/06/01] \ProvidesFile{tabvar.sty} - [2011/03/10 v1.5 (Daniel Flipo)] + [2011/07/07 v1.6 (Daniel Flipo)] \newif\ifFlechesMP \FlechesMPfalse \DeclareOption{FlechesMP}{\FlechesMPtrue} \DeclareOption{FlechesPS}{\FlechesMPfalse} @@ -139,9 +139,17 @@ \newdimen\TVcolorRightSep \setlength{\TVcolorLeftSep}{\TVarraycolsep} \setlength{\TVcolorRightSep}{\TVarraycolsep} -\newcolumntype{N}{% +\newcolumntype{U}{% >{\columncolor{TVcolor}[\TVcolorLeftSep][\TVcolorRightSep]} c} +\AtBeginDocument{% + \@ifundefined{NC@find@N}% + {\newcolumntype{N}{U}}% + {\PackageWarning{tabvar}{Le type de colonne N est d\'efini par + ailleurs. \MessageBreak Remplacer N par + U dans \protect\begin{tabvar}{...N...} + \MessageBreak}}% +} \newcommand{\decroit}{\FlecheD \global\advance\@pos by -1 \ifnum\@pos<1 @@ -227,6 +235,13 @@ \MessageBreak soit '<' soit '>'}}% }% } +\newcommand*{\TVcenter}[1]{% + \@tempcnta=\@niveaux \advance\@tempcnta by -1 \divide\@tempcnta by 2 + \@tempdimb=\@tempcnta\baselineskip + \ifodd\@niveaux\else\advance\@tempdimb by .5\baselineskip\fi + \@pos=1\raisebox{\@tempdimb}{\ensuremath{#1}}% +} + \newcommand{\TVarraystretch}{1.5} \setlength{\TVarraycolsep}{1pt} \newenvironment{tabvar}[1] |