diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tabvar/tabvar.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tabvar/tabvar.sty | 68 |
1 files changed, 42 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty index bd9f9fdd410..39aa7655537 100644 --- a/Master/texmf-dist/tex/latex/tabvar/tabvar.sty +++ b/Master/texmf-dist/tex/latex/tabvar/tabvar.sty @@ -21,12 +21,11 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% -%% Copyright (C) Daniel Flipo 2003-2010 <daniel.flipo at free.fr> +%% Copyright (C) Daniel Flipo 2003-2011 <daniel.flipo at free.fr> %% \NeedsTeXFormat{LaTeX2e}[1997/06/01] \ProvidesFile{tabvar.sty} - [2010/08/22 v1.4 (Daniel Flipo)] - + [2011/03/10 v1.5 (Daniel Flipo)] \newif\ifFlechesMP \FlechesMPfalse \DeclareOption{FlechesMP}{\FlechesMPtrue} \DeclareOption{FlechesPS}{\FlechesMPfalse} @@ -41,40 +40,57 @@ \input{supp-pdf} \DeclareGraphicsRule{*}{mps}{*}{} \fi -\newsavebox{\arup} -\newsavebox{\ardown} -\newsavebox{\arhor} +\providecommand{\f@size}{10} +\newcommand{\TVarrowscale}{\strip@pt\dimexpr\f@size pt/10\relax} \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}{% - \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}}}} +\newcommand*{\enearrow}{\enearrowi} +\newcommand*{\esearrow}{\esearrowi} +\newcommand*{\eastarrow}{\eastarrowi} +\newcommand*{\FlechesPS}[1]{% + \renewcommand*{\enearrow}{% + \csname enearrow\romannumeral#1\endcsname}% + \renewcommand*{\esearrow}{% + \csname esearrow\romannumeral#1\endcsname}% + \renewcommand*{\eastarrow}{% + \csname eastarrow\romannumeral#1\endcsname}% +} \AtBeginDocument{% \ifFlechesMP - \newcommand{\FlecheC}{\FlecheCm}% - \newcommand{\FlecheD}{\FlecheDm}% - \newcommand{\FlecheH}{\FlecheHm}% + \newsavebox{\arup}% + \newsavebox{\ardown}% + \newsavebox{\arhor}% + \sbox{\arup}{\includegraphics[scale=\TVarrowscale]{tabvar.1}}% + \sbox{\ardown}{\includegraphics[scale=\TVarrowscale]{tabvar.2}}% + \sbox{\arhor}{\includegraphics[scale=\TVarrowscale]{tabvar.3}}% + \newcommand*{\FlecheC}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\arup}}}}% + \newcommand*{\FlecheD}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\ardown}}}}% + \newcommand*{\FlecheH}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\arhor}}}}% \else \DeclareFontFamily{U}{tv}{}% \DeclareFontShape{U}{tv}{m}{n}{<->tabvar}{}% \DeclareSymbolFont{tvsymbols}{U}{tv}{m}{n}% - \DeclareMathSymbol{\enearrow}{\mathrel}{tvsymbols}{"25}% - \DeclareMathSymbol{\esearrow}{\mathrel}{tvsymbols}{"26}% - \DeclareMathSymbol{\eastarrow}{\mathrel}{tvsymbols}{"21}% - \newcommand{\FlecheC}{% + \DeclareMathSymbol{\eastarrowi}{\mathrel}{tvsymbols}{"21}% + \DeclareMathSymbol{\enearrowi}{\mathrel}{tvsymbols}{"25}% + \DeclareMathSymbol{\esearrowi}{\mathrel}{tvsymbols}{"26}% + \DeclareMathSymbol{\eastarrowii}{\mathrel}{tvsymbols}{"31}% + \DeclareMathSymbol{\enearrowii}{\mathrel}{tvsymbols}{"35}% + \DeclareMathSymbol{\esearrowii}{\mathrel}{tvsymbols}{"36}% + \DeclareMathSymbol{\eastarrowiii}{\mathrel}{tvsymbols}{"3B}% + \DeclareMathSymbol{\enearrowiii}{\mathrel}{tvsymbols}{"3F}% + \DeclareMathSymbol{\esearrowiii}{\mathrel}{tvsymbols}{"40}% + \DeclareMathSymbol{\eastarrowiv}{\mathrel}{tvsymbols}{"46}% + \DeclareMathSymbol{\enearrowiv}{\mathrel}{tvsymbols}{"4A}% + \DeclareMathSymbol{\esearrowiv}{\mathrel}{tvsymbols}{"4B}% + \newcommand*{\FlecheC}{% \TV@arrowcol@stretch{\ensuremath{\enearrow}}}% - \newcommand{\FlecheD}{% + \newcommand*{\FlecheD}{% \TV@arrowcol@stretch{\ensuremath{\esearrow}}}% - \newcommand{\FlecheH}{% + \newcommand*{\FlecheH}{% \TV@arrowcol@stretch{\ensuremath{\eastarrow}}}% \fi} \newdimen\TVextraheight |