diff options
author | Norbert Preining <norbert@preining.info> | 2019-12-20 03:00:48 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-12-20 03:00:48 +0000 |
commit | 18d9ec0eba21e6b8c55cdd50afb91c56e02ce7bf (patch) | |
tree | 56de5f55a6575a68557d5a384f57e3e8566c536d /graphics/pgf/base/doc/text-en/pgfmanual-en-library-trees.tex | |
parent | 3b24b0599bb35e1a3338fa33bfb24044a6125ba4 (diff) |
CTAN sync 201912200300
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-trees.tex')
-rw-r--r-- | graphics/pgf/base/doc/text-en/pgfmanual-en-library-trees.tex | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-trees.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-trees.tex index 92f2080921..c29dc7c556 100644 --- a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-trees.tex +++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-trees.tex @@ -41,7 +41,7 @@ the following options: Here are some arrangements based on this growth function. We start with a simple ``above'' arrangement: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{trees}}] \begin{tikzpicture}[grow via three points={% one child at (0,1) and two children at (-.5,1) and (.5,1)}] \node at (0,0) {one} child; @@ -54,7 +54,7 @@ the following options: The next arrangement places children above, but ``grows only to the right''. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{trees}}] \begin{tikzpicture}[grow via three points={% one child at (0,1) and two children at (0,1) and (1,1)}] \node at (0,0) {one} child; @@ -66,7 +66,7 @@ the following options: In the final arrangement, the children are placed along a line going down and right. -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{trees}}] \begin{tikzpicture}[grow via three points={% one child at (-1,-.5) and two children at (-1,-.5) and (0,-.75)}] \node at (0,0) {one} child; @@ -94,7 +94,7 @@ the following options: 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{codeexample}[preamble={\usetikzlibrary{trees}}] \begin{tikzpicture} [grow cyclic, level 1/.style={level distance=8mm,sibling angle=60}, @@ -120,7 +120,7 @@ the following options: Note that this function will not rotate the coordinate system. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{trees}}] \begin{tikzpicture} \node {root} [clockwise from=30,sibling angle=30] @@ -149,7 +149,7 @@ drawn: distance) and then on to the child using only horizontal and vertical lines. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{trees}}] \begin{tikzpicture} \node {root} [edge from parent fork down] @@ -167,7 +167,7 @@ drawn: This style behaves similarly, only it will first draw its edge to the right. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{trees}}] \begin{tikzpicture} \node {root} [edge from parent fork right,grow=right] |