diff options
author | Karl Berry <karl@freefriends.org> | 2016-03-01 23:35:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-03-01 23:35:32 +0000 |
commit | e7dd41895d83a8493af36e8684ff8371abb0c2c0 (patch) | |
tree | 7cc00b5b0d44ea6c0501521dca0326f92a8b2328 /Master/texmf-dist/doc/latex/visualtikz/Source/tkzcde.tex | |
parent | 64fe092a8f3dc062b323f28f52dc82c7be509252 (diff) |
visualtikz (29feb16)
git-svn-id: svn://tug.org/texlive/trunk@39905 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/visualtikz/Source/tkzcde.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/visualtikz/Source/tkzcde.tex | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/visualtikz/Source/tkzcde.tex b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzcde.tex new file mode 100644 index 00000000000..9b35c272a1d --- /dev/null +++ b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzcde.tex @@ -0,0 +1,45 @@ + + +\maboite{ \TFRGB{Atention : la création de la commande doit être placée avant}{Warning: the creation of the command must be placed before} \BS{begin}\AC{document} ! } + +\TFRGB{syntaxe :\BSS{newcommand}\AC{\BS{}nom}[nombre de variables]\AC{Description}}{syntax :\BSS{newcommand}\AC{\BS{}name}[ +number of variables]\AC{Description}} +\bigskip + + +\textbf{\TFRGB{Exemple : commande avec une variable}{Example : command with one variable} :} + + \emph{\TFRGB{Création}{Creation}} + + +\begin{tabular}{ll} +\BS{newcommand} & \\ %\% début de la nouvelle commande \\ +\AC{\BS{}maboite}[1]{\color{red} \{ } & \% \TFRGB{commande nommée ma boite et 1 seul d'argument}{command named \og maboite \fg with one variable } \\ +\BS{begin}\AC{center} & \% \TFRGB{centrage sur la ligne}{centering the box } \\ +\BS{tikzpicture} \BS{node}[fill=yellow & \% \TFRGB{un n\oe ud de texte de couleur jaune}{a yellow text box} \\ +,text centered & \% \TFRGB{centrage du texte dans la boite}{centering the text in the box} \\ +,text width=.5\BS{linewidth}] & \% \TFRGB{largeur : la moitié de la ligne}{ to set the width of the box} \\ +\#1\} ; \BS{end}\AC{center} & \% \TFRGB{\#1 correspond à l'argument}{\#1 will be replaced by the variable} \\ +{\color{red} \} } & \\ % fin de la nouvelle commande \\ +\end{tabular} + +\bigskip +\emph{Utilisation} : \BS{maboite}\AC{contenu} + +\maboite{contenu} + + +\bigskip +\label{DFR} + +\textbf{\TFRGB{Exemple : commande sans variable}{Example : command without variable} :} + + \emph{\TFRGB{Création}{ creation}} + +\BS{newcommand}\AC{\BS{DFR}}\AC{ \BS{tikzpicture}[scale=.25] + \BS{draw} [fill=blue](0,0) rectangle (3,1.5); +\BS{draw} [fill=white](1,0) rectangle (2,1.5); +\BS{draw}[fill=red](2,0) rectangle (3,1.5);\BS{endtikzpicture} } + + +\emph{Utilisation} : \BS{DFR} \DFR |