diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-14 18:27:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-14 18:27:55 +0000 |
commit | f62ddee209e4738d7178b9c7be4238df44593a8c (patch) | |
tree | 0599b68179278154ec762966e0ac5ab668164a95 /Master/texmf-dist/doc/latex/tablor/tablor.tex | |
parent | 796f1a22ebec723341de97da1835bfeef05d79be (diff) |
tablor 4.07 (10may10)
git-svn-id: svn://tug.org/texlive/trunk@18250 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tablor/tablor.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tablor/tablor.tex | 94 |
1 files changed, 62 insertions, 32 deletions
diff --git a/Master/texmf-dist/doc/latex/tablor/tablor.tex b/Master/texmf-dist/doc/latex/tablor/tablor.tex index 6423788d872..70afb09205d 100644 --- a/Master/texmf-dist/doc/latex/tablor/tablor.tex +++ b/Master/texmf-dist/doc/latex/tablor/tablor.tex @@ -9,7 +9,7 @@ -\documentclass[12pt]{article} +\documentclass[11pt]{article} \usepackage{etex} \usepackage[height=250mm,width=183mm]{geometry} \usepackage[latin1]{inputenc} @@ -21,7 +21,6 @@ \usepackage[xcas]{tablor} \usepackage{listings,keystroke} \usepackage{graphicx,bclogo,amssymb,amsbsy,amsfonts,amstext,amscd,amsopn,amsxtra} - % bclogo est téléchargeable ici : http://melusine.eu.org/syracuse/wiki/doku.php/mc/bclogo @@ -34,7 +33,7 @@ \addtolength{\cftsubsecnumwidth}{1em} % pour une TdM hyperactive... -\usepackage[dvips,colorlinks=true,linkcolor=0.2white]{hyperref} +\usepackage[dvips,colorlinks=true,linkcolor=blue]{hyperref} % quelques gris @@ -45,17 +44,21 @@ \definecolor{0.4white}{rgb}{.4,.4,.4} \definecolor{0.6white}{rgb}{.6,.6,.6} \definecolor{0.1white}{rgb}{.1,.1,.1} +\definecolor{bleu}{rgb}{0.4,0.2,1} \newrgbcolor{bleu}{0.4 0.2 1} +\definecolor{orange}{rgb}{0.589999,0.269997,0.080004} +\definecolor{rouge}{rgb}{1,0,0} \newrgbcolor{rouge}{1 0 0} % style des listings +\newcommand\lat{\lstset{numbers=none,language=[LaTeX]{TeX},xleftmargin=10pt,% +keywordstyle =\color{bleu}\bfseries,basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{green!20},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b} +} + \newcommand\xcas{\lstset{numbers=none,language=XCAS,xleftmargin=10pt,% -keywordstyle =\color{black}\usefont{OT1}{cmtt}{b}{n},basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{0.9white},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b} +keywordstyle =\color{rouge!70!black}\bfseries,basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{orange!20},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b} } -\newcommand\lat{\lstset{numbers=none,language=[LaTeX]{TeX},xleftmargin=10pt,% -keywordstyle =\color{black}\usefont{OT1}{cmtt}{b}{n},basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{0.9white},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b} -} % petits environnements bclogo @@ -95,7 +98,7 @@ keywordstyle =\color{black}\usefont{OT1}{cmtt}{b}{n},basicstyle=\ttfamily\color{ avec l'efficace participation de Jean-Michel \textsc{Boucart}\\ Forum d'aide ~:~\href{http://gconnan.free.fr/punbb/upload/index.php}{http://gconnan.free.fr/punbb/upload/index.php}} -\date{1\up{er} décembre 2009 - Version 4.06-c} +\date{9 mai 2010 - Version 4.07} @@ -210,6 +213,9 @@ défaut. Il faut une version récente de XCAS, postérieure au 20 novembre 2009. (version tablor : 4.06-c) +Tableaux en couleurs ! Merci à \texttt{fp} du forum +\href{http://forum.mathematex.net/latex-f6/tableau-de-variations-redige-en-bleu-t10826.html}{\texttt{mathematex}} +(version tablor : 4.07) \xcas \begin{lstlisting}[caption={}] @@ -832,6 +838,40 @@ TV([-10,+infinity],[-1,1],"g","t",x^2/(x^2-1),1,n,\tv) +\section{Tableaux en couleur} + +Grâce à la très efficace intervention de \texttt{fp} du forum +\href{http://forum.mathematex.net/latex-f6/tableau-de-variations-redige-en-bleu-t10826.html}{\texttt{mathematex}}, +on peut à présent avoir des tableaux en couleur. Cette couleur est noire +par défaut. Si on veut égayer sa présentation, on utilise la commande +\verb+\coultab{couleur}+ où \verb+couleur+ est le nom de la couleur +désirée selon les standards \textbf{MetaPOST}~: +\begin{itemize} +\item \verb+blue+, \verb+red+, \verb+green+, etc. +\item pour les gris : \verb+0.1white+, \verb+0.2white+, etc. +\item un code RGB : \verb+(0.4,0.2,1)+, etc. +\end{itemize} + +\begin{lstlisting}[caption={}] +\coultab{blue} +\begin{TV} +TV([0,2],[],"f","x",x^2,1,n,\tv) +\end{TV} +\end{lstlisting} + + +\coultab{blue} +\begin{center} + \begin{TV} + TV([0,2],[],"f","x",x^2,1,n,\tv) + \end{TV} + \end{center} +\coultab{black} + + + + + \section{Nom des fonctions et commandes \LaTeX{}} Si vous voulez donner un nom de fonction nécessitant l'emploi d'une @@ -927,7 +967,10 @@ TV([borne inf,borne sup],[valeurs interdites],"nom fonction","nom variable",expr \begin{itemize} -\item \texttt{[borne inf,borne sup]} désigne les bornes de l'ensemble de définition. On note +\item \texttt{[borne inf,borne sup]} désigne les bornes de l'ensemble de + définition. + +On note $+\infty$~:~\texttt{+infinity} et $-\infty$~:~\texttt{-infinity}. N'oubliez pas les crochets~! \item \texttt{[valeurs interdites]} désigne la liste des valeurs interdites~; @@ -1282,37 +1325,24 @@ Voyons sur un exemple. \subsubsection*{Exemple} +On veut résoudre l'équation $\ln(x)=\mathrm{e}^{-x}$ sur $]0,+\infty[$. -Soit $g$ la fonction $x\mapsto \ln(x)-x e^{2-x} $. - -Avec les élèves, on étudie d'abord la fonction $x\mapsto g'(x)$~: - -\begin{lstlisting} -\begin{TVIapp} - TVIapp([0,+infinity],[0],"g'","x",diff(ln(x)-x*exp(2-x),x),1,0,\tv) -\end{TVIapp} -\end{lstlisting} - - - \begin{TVIapp} - TVIapp([0,+infinity],[0],"g'","x",diff(ln(x)-x*exp(2-x),x),1,0,\tv) - \end{TVIapp} - - -On en déduit le tableau suivant~: +Soit $g$ la fonction $x\mapsto x\ln(x)-e^{-x} $. \begin{lstlisting} \begin{TVapp} - TVapp([0,+infinity],[0],"g","x",ln(x)-x*exp(2-x),1,\tv) +TVapp([0,+infinity],[0],"g","x",x*ln(x)-exp(-x),1,\tv) \end{TVapp} \end{lstlisting} - +\begin{center} \begin{TVapp} -TVapp([0,+infinity],[0],"g","x",ln(x)-x*exp(2-x),1,\tv) +TVapp([0,+infinity],[0],"g","x",x*ln(x)-exp(-x),1,\tv) \end{TVapp} +\end{center} + \begin{figure}[!h] \begin{DANGER} @@ -1346,9 +1376,9 @@ renvoie un tableau curieux car les images des racines de la dérivées sont de l'ordre de $10^{-10}$. -\begin{TVapp} -TVapp([0,+infinity],[0],"g","x",1/3*x^3-0.0015*x^2+2e-06*x,1,\tv) -\end{TVapp} +% \begin{TVapp} +% TVapp([0,+infinity],[0],"g","x",1/3*x^3-0.0015*x^2+2e-06*x,1,\tv) +% \end{TVapp} Ça peut s'arranger en donnant en argument supplémentaire le nombre de chiffres affichés. Cela rendrait les différentes versions incompatibles |