summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-berge/doc/latex/TKZdoc-berge-style.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-berge/doc/latex/TKZdoc-berge-style.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-berge/doc/latex/TKZdoc-berge-style.tex58
1 files changed, 58 insertions, 0 deletions
diff --git a/macros/latex/contrib/tkz/tkz-berge/doc/latex/TKZdoc-berge-style.tex b/macros/latex/contrib/tkz/tkz-berge/doc/latex/TKZdoc-berge-style.tex
new file mode 100644
index 0000000000..cfb0934e1c
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-berge/doc/latex/TKZdoc-berge-style.tex
@@ -0,0 +1,58 @@
+\section{Macros and Styles}
+
+\subsection{How to change the background color and text color}
+
+You can use the following macro :
+
+\begin{NewMacroBox}{tkzSetUpColors}{\oarg{local options}}
+
+\begin{tabular}{llc}
+ Options & default & definition \\
+\midrule
+\TOline{background} {white} {couleur du fond }
+\TOline{text} {black} {couleur du texte }
+\end{tabular}
+\end{NewMacroBox}
+
+
+
+
+\subsection{Modification of labels \tkzcname{AssignVertexLabel}}
+
+\begin{NewMacroBox}{AssignVertexLabel}{\oarg{local options}\var{prefix}\var{List of names}}
+\begin{tabular}{lll}
+ Arguments & & example \\
+\midrule
+\TAline{prefix} {} {\tkzcname{AssignVertexLabel\{a\}\{Alter\}}}
+\TAline{List of names} {} {\tkzcname{AssignVertexLabel\{a\}\{Paris,Lyon\}}}
+\bottomrule
+\end{tabular}
+
+\medskip
+\begin{tabular}{llc}
+ Options & default & definition \\
+\midrule
+\TOline{size} {\tkzcname{normalsize}} {taille de la fonte }
+\TOline{color} {black} {couleur du texte }
+\TOline{Math} {false} {math mode }
+\end{tabular}
+\end{NewMacroBox}
+
+\medskip
+\subsubsection{AssignStyle and \tkzcname{AssignVertexLabel}}
+First step : We create an empty graph without labels.
+
+Second step : We place labels with the macro \tkzcname{AssignVertexLabel} \begin{center}
+\begin{tkzexample}[vbox]
+\begin{tikzpicture}
+ \SetVertexNoLabel
+ \grCycle{6}
+ \tikzset{AssignStyle/.append style = {below=12pt}}
+ \AssignVertexLabel[color = blue,%
+ size = \footnotesize]{a}{%
+ Paris,Lyon,Marseille,Bordeaux,Reims,Saint-Etienne}
+\end{tikzpicture}
+\end{tkzexample}
+\end{center}
+
+\endinput \ No newline at end of file