blob: 20291789804dc1c4a59b0f9dcee060763616afda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
%!TEX root = /Users/ego/Boulot/TKZ/tkz-berge/doc-us/TKZdoc-berge-main.tex
\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
|