summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/visualtikz/Source/tkzstyl.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/visualtikz/Source/tkzstyl.tex')
-rw-r--r--Master/texmf-dist/doc/latex/visualtikz/Source/tkzstyl.tex55
1 files changed, 55 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/visualtikz/Source/tkzstyl.tex b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzstyl.tex
new file mode 100644
index 00000000000..d79c438bd36
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzstyl.tex
@@ -0,0 +1,55 @@
+\subsection{Style sans variable}
+
+\begin{tabular}{|c|c|} \hline
+\begin{tikzpicture}[mon style/.style={draw=blue,fill=red!20,very thick},baseline=0pt]
+\draw (0,0) circle (2cm);
+\draw[mon style] (0,0) circle (1cm);
+\end{tikzpicture}
+&
+\parbox{10cm}{
+\BS{begin}\AC{tikzpicture} [mon style\RDD{/.style}=\AC{draw=blue, fill=red!20, very thick}]\\
+\BS{draw} (0,0) circle (2cm); \\
+\BS{draw}[mon style] (0,0) circle (1cm); \\
+\BS{end}\AC{tikzpicture} \\ }
+\\ \hline
+\end{tabular}
+
+
+
+\subsection{Style à variable}
+
+\begin{tabular}{|c|c|} \hline
+\begin{tikzpicture}[mon style/.style={draw=#1,thick,fill=#1!50,scale=.5}]
+\filldraw [mon style=red] (0,0) rectangle (2,1);
+\filldraw [mon style=blue] (3,0) rectangle (5,1);
+\end{tikzpicture}
+&
+\parbox{12cm}{
+\BS{begin}\AC{tikzpicture} [mon style/\RDD{.style}=\AC{draw={\color{red} \#1}, thick, fill={\color{red} \#1}!50, scale=.5}]\\
+\BS{filldraw} [mon style=red] (0,0) rectangle (2,1);\\
+\BS{filldraw} [mon style=blue] (3,0) rectangle (5,1);\\
+\BS{end}\AC{tikzpicture} \\
+}
+\\ \hline
+
+\end{tabular}
+
+
+valeur par défaut
+
+\begin{tabular}{|c|c|} \hline
+\begin{tikzpicture}[mon style/.style={draw=#1,thick,fill=#1!50,scale=.5},
+mon style/.default=black]
+\filldraw [mon style] (0,0) rectangle (2,1);
+\filldraw [mon style=blue] (3,0) rectangle (5,1);
+\end{tikzpicture}
+&
+\parbox{12cm}{
+\BS{begin}\AC{tikzpicture} [mon style/\RDD{.style}=\AC{draw={\color{red} \#1},fill={\color{red} \#1}!20,very thick},\\
+mon style/\RDD{.default}=black] \\
+\BS{filldraw} [mon style] (0,0) rectangle (2,1);\\
+\BS{filldraw} [mon style=blue] (3,0) rectangle (5,1);\\
+\BS{end}\AC{tikzpicture} }
+\\ \hline
+
+\end{tabular}