diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-09 00:05:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-09 00:05:31 +0000 |
commit | 64ac32424e6d9862183c9261c2824155d8b9ba75 (patch) | |
tree | 9258bb312b9afee967dfd11e9739972754f9adf6 /Master/texmf-dist/tex/latex/tabvar/tabvar.sty | |
parent | 5adcd9650d837853891dd467590841dae36653cd (diff) |
tabvar update (24aug10)
git-svn-id: svn://tug.org/texlive/trunk@19619 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.sty | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty index 015d4448ff6..bd9f9fdd410 100644 --- a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty +++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty @@ -25,7 +25,8 @@ %% \NeedsTeXFormat{LaTeX2e}[1997/06/01] \ProvidesFile{tabvar.sty} - [2010/04/03 v1.3 (Daniel Flipo)] + [2010/08/22 v1.4 (Daniel Flipo)] + \newif\ifFlechesMP \FlechesMPfalse \DeclareOption{FlechesMP}{\FlechesMPtrue} \DeclareOption{FlechesPS}{\FlechesMPfalse} @@ -43,14 +44,20 @@ \newsavebox{\arup} \newsavebox{\ardown} \newsavebox{\arhor} +\newcommand*{\TVarrowscolstretch}{1} +\newcommand*{\TV@arrowcol@stretch}[1]{% + \makebox[\TVarrowscolstretch\width][c]{#1}} \providecommand{\f@size}{10} \newcommand{\TVarrowscale}{\strip@pt\dimexpr\f@size pt/10\relax} \sbox{\arup}{\includegraphics[scale=\TVarrowscale]{tabvar.1}} \sbox{\ardown}{\includegraphics[scale=\TVarrowscale]{tabvar.2}} \sbox{\arhor}{\includegraphics[scale=\TVarrowscale]{tabvar.3}} -\newcommand{\FlecheCm}{\raisebox{.5ex}{\usebox{\arup}}} -\newcommand{\FlecheDm}{\raisebox{.5ex}{\usebox{\ardown}}} -\newcommand{\FlecheHm}{\raisebox{.5ex}{\usebox{\arhor}}} +\newcommand{\FlecheCm}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\arup}}}} +\newcommand{\FlecheDm}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\ardown}}}} +\newcommand{\FlecheHm}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\arhor}}}} \AtBeginDocument{% \ifFlechesMP \newcommand{\FlecheC}{\FlecheCm}% @@ -63,9 +70,12 @@ \DeclareMathSymbol{\enearrow}{\mathrel}{tvsymbols}{"25}% \DeclareMathSymbol{\esearrow}{\mathrel}{tvsymbols}{"26}% \DeclareMathSymbol{\eastarrow}{\mathrel}{tvsymbols}{"21}% - \newcommand{\FlecheC}{\ensuremath{\enearrow}}% - \newcommand{\FlecheD}{\ensuremath{\esearrow}}% - \newcommand{\FlecheH}{\ensuremath{\eastarrow}}% + \newcommand{\FlecheC}{% + \TV@arrowcol@stretch{\ensuremath{\enearrow}}}% + \newcommand{\FlecheD}{% + \TV@arrowcol@stretch{\ensuremath{\esearrow}}}% + \newcommand{\FlecheH}{% + \TV@arrowcol@stretch{\ensuremath{\eastarrow}}}% \fi} \newdimen\TVextraheight \setlength{\TVextraheight}{.7\baselineskip} |