summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-trees.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-trees.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-trees.tex52
1 files changed, 29 insertions, 23 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-trees.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-trees.tex
index f4e6f591c1c..1ed99fe963c 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-trees.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-trees.tex
@@ -22,9 +22,8 @@
The package |pgflibrarytikztrees| defines two new growth
functions. They are installed using the following options:
-\begin{itemize}
- \itemoption{grow via three points}|=one child at (|\meta{x}%
- |) and two children at (|\meta{y}|) and (|\meta{z}|)|
+\begin{key}{/tikz/grow via three points=|one child at (|\meta{x}%
+ |) and two children at (|\meta{y}|) and (|\meta{z}|)|}
This option installs a growth function that works as follows: If a
parent node has just one child, this child is placed at \meta{x}. If
the parent node has two children, these are placed at \meta{y} and
@@ -78,35 +77,37 @@ functions. They are installed using the following options:
These examples should make it clear how you can create new styles to
arrange your children along a line.
+\end{key}
- \itemstyle{grow cyclic}
+\begin{key}{/tikz/grow cyclic}
This style causes the children to be arranged ``on a circle.'' For
this, the children are placed at distance |\tikzleveldistance| from
the parent node, but not on a straight line, but points on a
circle. Instead of a sibling distance, there is a |sibling angle|
that denotes the angle between two given children.
- \begin{itemize}
- \itemoption{sibling angle}|=|\meta{angle}
+ \begin{key}{/tikz/sibling angle=\meta{angle}}
Sets the angle between siblings in the |grow cyclic| style.
- \end{itemize}
+ \end{key}
Note that this function will rotate the coordinate system of the
children to ensure that the grandchildren will grow in the right
direction.
\begin{codeexample}[]
-\begin{tikzpicture}[grow cyclic]
- \tikzstyle{level 1}=[level distance=8mm,sibling angle=60]
- \tikzstyle{level 2}=[level distance=4mm,sibling angle=45]
- \tikzstyle{level 3}=[level distance=2mm,sibling angle=30]
+\begin{tikzpicture}
+ [grow cyclic,
+ level 1/.style={level distance=8mm,sibling angle=60},
+ level 2/.style={level distance=4mm,sibling angle=45},
+ level 3/.style={level distance=2mm,sibling angle=30}]
\coordinate [rotate=-90] % going down
child foreach \x in {1,2,3}
{child foreach \x in {1,2,3}
{child foreach \x in {1,2,3}}};
\end{tikzpicture}
\end{codeexample}
+\end{key}
- \itemoption{clockwise from}|=|\meta{angle}
+\begin{key}{/tikz/clockwise from=\meta{angle}}
This option also cuases children to be arranged on a
- circle. However, the rule for placing children is simpler thatn with
+ circle. However, the rule for placing children is simpler than with
the |grow cyclic| style: The first child is placed at
\meta{angle} at a distance of |\tikzleveldistance|. The second child
is placed at the same distance from the parent, but at angle
@@ -124,18 +125,19 @@ functions. They are installed using the following options:
child {node {$-60$}};
\end{tikzpicture}
\end{codeexample}
- \itemoption{counterclockwise from}|=|\meta{angle}
+\end{key}
+
+\begin{key}{/tikz/counterclockwise from=\meta{angle}}
Works the same way as |clockwise from|, but sibling angles are added
instead of subtracted.
-\end{itemize}
+\end{key}
\subsection{Edges From Parent}
The following styles can be used to modify how the edges from parents
are drawn:
-\begin{itemize}
- \itemstyle{edge from parent fork down}
+\begin{stylekey}{/tikz/edge from parent fork down}
This style will draw a line from the parent downwards (for half the
level distance) and then on to the child using only horizontal and
vertical lines.
@@ -150,7 +152,9 @@ are drawn:
};
\end{tikzpicture}
\end{codeexample}
- \itemstyle{edge from parent fork right}
+\end{stylekey}
+
+\begin{stylekey}{/tikz/edge from parent fork right}
This style behaves similarly, only it will first draw its edge to
the right.
\begin{codeexample}[]
@@ -164,13 +168,15 @@ are drawn:
};
\end{tikzpicture}
\end{codeexample}
- \itemstyle{edge from parent fork left}
- behaves similary.
- \itemstyle{edge from parent fork up}
- behaves similary.
-\end{itemize}
+\end{stylekey}
+\begin{stylekey}{/tikz/edge from parent fork left}
+ Behaves similary to the previous styles.
+\end{stylekey}
+\begin{stylekey}{/tikz/edge from parent fork up}
+ Behaves similary to the previous styles.
+\end{stylekey}
%%% Local Variables: