diff options
author | Karl Berry <karl@freefriends.org> | 2011-03-11 00:27:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-03-11 00:27:01 +0000 |
commit | c578b93af21861e49bd86a013f553a967e684d2d (patch) | |
tree | 439bdaed4e2d64e8ecb37c1db39b5331165cf853 /Master/texmf-dist/tex/latex/tabvar/tabvar.sty | |
parent | 82939b1791f084d4f8dd55923ed894d658b9b172 (diff) |
tabvar (10mar11)
git-svn-id: svn://tug.org/texlive/trunk@21678 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 | 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 |