From c578b93af21861e49bd86a013f553a967e684d2d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 11 Mar 2011 00:27:01 +0000 Subject: tabvar (10mar11) git-svn-id: svn://tug.org/texlive/trunk@21678 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/tabvar/demo.pdf | Bin 259298 -> 231248 bytes Master/texmf-dist/doc/latex/tabvar/demo.tex | 138 ++++++++++++++++++++++---- Master/texmf-dist/doc/latex/tabvar/tabvar.pdf | Bin 305919 -> 292680 bytes 3 files changed, 116 insertions(+), 22 deletions(-) (limited to 'Master/texmf-dist/doc/latex/tabvar') diff --git a/Master/texmf-dist/doc/latex/tabvar/demo.pdf b/Master/texmf-dist/doc/latex/tabvar/demo.pdf index 64627199c8c..fea7b374cfd 100644 Binary files a/Master/texmf-dist/doc/latex/tabvar/demo.pdf and b/Master/texmf-dist/doc/latex/tabvar/demo.pdf differ diff --git a/Master/texmf-dist/doc/latex/tabvar/demo.tex b/Master/texmf-dist/doc/latex/tabvar/demo.tex index 6ec792fab7e..d67cbc727c7 100644 --- a/Master/texmf-dist/doc/latex/tabvar/demo.tex +++ b/Master/texmf-dist/doc/latex/tabvar/demo.tex @@ -240,45 +240,139 @@ Noter que le type de la colonne $t=-1$ a d \texttt{C} pour permettre l'ajout du filet vertical. \newpage -Le même tableau encore, mais cette fois on utilise les flèches -dessinées en MetaPost. -\begingroup -\renewcommand{\FlecheC}{\FlecheCm} -\renewcommand{\FlecheD}{\FlecheDm} -\renewcommand{\FlecheH}{\FlecheHm} +Il est possible de choisir entre quatre types de flèches grâce aux commandes +\verb+\FlechesPS1+ (flèches « à moustaches » obtenues par défaut) \dots{} +\verb+\FlechesPS4+. +Voici le même tableau avec des flèches assorties à la police Fourier +(\verb+\FlechesPS2+) : -\[\begin{tabvar}{|C|CCRCRCLCCCC|} \hline - t &-\infty & &-1 & & &0 & & & 1 & &+\infty +\FlechesPS2 +\[\begin{tabvar}{|C|CCCCRCLCCCC|} \hline + t &-\infty & &-1 & & &0 & & & 1 & &+\infty \\ \hline -x'(t) & &+ & 0 & - & &\dbarre & & - & 0 & + & +x'(t) & &+ &\barre{0} + &- & &\dbarre & &- &\barre{0} &+ & \\ \hline \niveau{1}{3} x(t) &-\infty &\croit - &-2 &\decroit + &\barre{-2} &\decroit &-\infty &\dbarre &\niveau{3}{3}+\infty &\decroit - &2 &\croit + &\barre{2} &\croit &+\infty \\ \hline \niveau{1}{3} y(t) &-\infty &\croit &-\frac{1}{2} &\croit &+\infty &\dbarre &+\infty &\decroit - &\frac{3}{2} &\croit + &\barre{\frac{3}{2}} &\croit &+\infty \\ \hline -y'(t) & &+ &2 & + & & \dbarre & & - & 0 &+ & +y'(t) & &+ &2 &+ & &\dbarre & &- &\barre{0} &+ & +\\ \hline +\end{tabvar}\] + +Une autre variante (\verb+\FlechesPS3+) \FlechesPS3 : +\[\begin{tabvar}{|C|CCCCRCLCCCC|} \hline + t &-\infty & &-1 & & &0 & & & 1 & &+\infty +\\ \hline +x'(t) & &+ &\barre{0} + &- & &\dbarre & &- &\barre{0} &+ & +\\ \hline +\niveau{1}{3} +x(t) &-\infty &\croit + &\barre{-2} &\decroit + &-\infty &\dbarre &\niveau{3}{3}+\infty &\decroit + &\barre{2} &\croit + &+\infty +\\ \hline +\niveau{1}{3} +y(t) &-\infty &\croit + &-\frac{1}{2} &\croit + &+\infty &\dbarre &+\infty &\decroit + &\barre{\frac{3}{2}} &\croit + &+\infty +\\ \hline +y'(t) & &+ &2 &+ & &\dbarre & &- &\barre{0} &+ & \\ \hline \end{tabvar}\] -\endgroup -Le choix entre les flèches MetaPost et celles de Michel \textsc{Bovani} se -fait normalement soit à l'aide des options -%\texttt{FlechesMP} ou\texttt{FlechesPS} -de \texttt{tabvar} (\verb|\usepackage[FlechesMP]{tabvar}|) -soit dans le préambule ou dans le fichier \texttt{tabvar.cfg}, à l'aide du -drapeau \verb|\FlechesMP| : \verb|\FlechesMPtrue| pour les -flèches MetaPost (par défaut les flèches -\og bovaniennes \fg{} sont utilisées). +et une dernière (\verb+\FlechesPS4+) \FlechesPS4 : +\[\begin{tabvar}{|C|CCCCRCLCCCC|} \hline + t &-\infty & &-1 & & &0 & & & 1 & &+\infty +\\ \hline +x'(t) & &+ &\barre{0} + &- & &\dbarre & &- &\barre{0} &+ & +\\ \hline +\niveau{1}{3} +x(t) &-\infty &\croit + &\barre{-2} &\decroit + &-\infty &\dbarre &\niveau{3}{3}+\infty &\decroit + &\barre{2} &\croit + &+\infty +\\ \hline +\niveau{1}{3} +y(t) &-\infty &\croit + &-\frac{1}{2} &\croit + &+\infty &\dbarre &+\infty &\decroit + &\barre{\frac{3}{2}} &\croit + &+\infty +\\ \hline +y'(t) & &+ &2 &+ & &\dbarre & &- &\barre{0} &+ & +\\ \hline +\end{tabvar}\] + +\newpage + +Le même tableau encore, mais cette fois on utilise les flèches dessinées en +MetaPost. Celles-ci sont conservées uniquement pour préserver la compatibilité +ascendante, l'utilisation des flèches PostScript est de loin préférable (les +flèches MetaPost sont des \emph{dessins}, leur couleur ne change pas avec la +couleur du texte contrairement aux flèches PostScript qui sont des +\emph{caractères}). +Le flèches MetaPost sont obtenues avec +\verb|\usepackage[FlechesMP]{tabvar}| +ou la commande \verb|\FlechesMPtrue| placée dans le préambule ou dans le +fichier \texttt{tabvar.cfg}. + +\begingroup + \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}}% + \makeatletter + \renewcommand{\FlecheC}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\arup}}}}% + \renewcommand{\FlecheD}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\ardown}}}}% + \renewcommand{\FlecheH}{% + \TV@arrowcol@stretch{\raisebox{.5ex}{\usebox{\arhor}}}}% + \makeatother + + \[\begin{tabvar}{|C|CCRCRCLCCCC|} \hline + t &-\infty & &-1 & & &0 & & & 1 & &+\infty + \\ \hline + x'(t) & &+ & 0 & - & &\dbarre & & - & 0 & + & + \\ \hline + \niveau{1}{3} + x(t) &-\infty &\croit + &-2 &\decroit + &-\infty &\dbarre &\niveau{3}{3}+\infty &\decroit + &2 &\croit + &+\infty + \\ \hline + \niveau{1}{3} + y(t) &-\infty &\croit + &-\frac{1}{2} &\croit + &+\infty &\dbarre &+\infty &\decroit + &\frac{3}{2} &\croit + &+\infty + \\ \hline + y'(t) & &+ &2 & + & & \dbarre & & - & 0 &+ & + \\ \hline + \end{tabvar}\] +\endgroup Un exemple de fonction non définie partout : $\displaystyle f(x) = \sqrt{\frac{x-1}{x+1}}$. diff --git a/Master/texmf-dist/doc/latex/tabvar/tabvar.pdf b/Master/texmf-dist/doc/latex/tabvar/tabvar.pdf index 4fb40c3aa86..006da6b34c5 100644 Binary files a/Master/texmf-dist/doc/latex/tabvar/tabvar.pdf and b/Master/texmf-dist/doc/latex/tabvar/tabvar.pdf differ -- cgit v1.2.3