Debian Codegraph @

texmf-dist/doc/latex/tkz-base/TKZdoc-base-style.tex

raw
1 \section{Style Use}
2
3 \subsection{Modification of \tkzname{\tkznameofpack}}
4 \tkzname{tkz-base.sty} has a default configuration file. Its existence is not mandatory, but if it exists, you can modify it to get different default styles. I only give a quick description of this file, as it may evolve soon.
5
6 In \tkzname{tkz-base.cfg}, you can set the axes, the reference (if used), the grid, etc. as well as the styles which are linked to these objects.
7 It is possible to modify the styles of the points and segments.
8
9 It is also possible to define the dimensions of a drawing by default by modifying \tkzname{xmin}, \tkzname{xmax}, \tkzname{ymin} and \tkzname{ymax}.
10
11
12 \begin{tkzltxexample}[small]
13 \def\tkz@xa{0}
14 \def\tkz@xb{10}
15 \def\tkz@ya{0}
16 \def\tkz@yb{10}
17 \end{tkzltxexample}
18
19 These lines are used to define the values of \tkzname{xmin}, \tkzname{xmax}, etc.
20
21 You can change them, for example:
22
23 \begin{tkzltxexample}[small]
24 \def\tkz@xa{-5}
25 \def\tkz@xb{-5}
26 \def\tkz@ya{5}
27 \def\tkz@yb{5}
28 \end{tkzltxexample}
29
30 Here's a list of used styles you'll find in \tkzname{tkz-base.cfg}
31
32 \begin{itemize}
33 \item xlabel style
34 \item xaxe style
35 \item ylabel style
36 \item yaxe style
37 \item rep style
38 \item line style
39 \item point style
40 \item mark style
41 \item compass style
42 \item vector style
43 \item arrow coord style
44 \item xcoord style
45 \item ycoord style
46 \end{itemize}
47
48 \subsection{Use \tkzcname{tikzset}}
49 It's better to use \tkzcname{tikzset} now rather than \tkzcname{tikzstyle}\ and it's possible to use \tkzname{tkz-base.cfg}.
50
51 If you want to change the appearance of the axes of the orthogonal coordinate system, for example place arrows at each end or remove them. This can be done in \tkzname{tkz-base.cfg} or in your code.
52
53 \begin{tkzltxexample}[small]
54 \tikzset{xaxe style/.style ={>=latex,<->}}
55 \end{tkzltxexample}
56
57 The transformation will be valid for the entire document. Note that \tkzname{xmin} has been modified, in fact the arrow and the line corresponding to the graduation merge.
58
59 \begin{tkzexample}[latex=7cm,small]
60 \tikzset{xaxe style/.style = {<->}}
61 \tikzset{xlabel style/.style={below=6pt}}
62 \begin{tikzpicture}
63 \tkzInit[xmin=-0.5,xmax=5]
64 \tkzDrawX
65 \tkzLabelX
66 \end{tikzpicture}
67 \end{tkzexample}
68
69 \endinput