diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-graphs.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-graphs.tex | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-graphs.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-graphs.tex index 7c51ffe0e7c..2f9d95af925 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-graphs.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-graphs.tex @@ -1,5 +1,5 @@ -% Copyright 2010 by Till Tantau -% Copyright 2011 by Jannis Pohlmann +% Copyright 2019 by Till Tantau +% Copyright 2019 by Jannis Pohlmann % % This file may be distributed and/or modified % @@ -243,8 +243,9 @@ Chain groups make it easy to create tree structures: As can be seen, the placement is not particularly nice by default, use the algorithms from the graph drawing libraries to get a better layout. For -instance, adding |tree layout| to the above code results in the following -somewhat more pleasing rendering: +instance, adding |tree layout| to the above code (and +|\usetikzlibrary{graphdrawing}| as well as |\usegdlibrary{trees}| to the +preamble) results in the following somewhat more pleasing rendering: % \ifluatex \medskip @@ -290,7 +291,7 @@ add labels to the edges easily by putting the labels in quotes: For the first edge, the effect is as desired, however between |b| and the group |{c,d}| two edges are inserted and the options |thick| and the label option |"bar"| is applied to both of them. While this is the correct and consistent -behaviour, we typically might wish to specify different labels for the edge +behavior, we typically might wish to specify different labels for the edge going from |b| to |c| and the edge going from |b| to |d|. To achieve this effect, we can no longer specify the label as part of the options of |--|. Rather, we must pass the desired label to the nodes |c| and |d|, but we must @@ -338,8 +339,8 @@ created by default unless this node has already been created inside the same |graph| command. In particular, if a node has already been declared outside of the current |graph| command, a new node of the same name gets created. -This is not always the desired behaviour. Often, you may wish to make nodes -part of a graph than have already been defined prior to the use of the |graph| +This is not always the desired behavior. Often, you may wish to make nodes part +of a graph than have already been defined prior to the use of the |graph| command. For this, simply surround a node name by parentheses. This will cause a reference to be created to an already existing node: % @@ -898,7 +899,7 @@ the node is \emph{fresh}. }; \end{codeexample} -This behaviour of deciding whether a node is fresh or referenced can, however, +This behavior of deciding whether a node is fresh or referenced can, however, be modified by using the following keys: % \begin{key}{/tikz/graphs/use existing nodes=\opt{\meta{true or false}} (default true)} @@ -1071,7 +1072,7 @@ is called. The different parameters are as follows: following key is used as \meta{text}: % \begin{key}{/tikz/graphs/typeset=\meta{code}} - The macro or code stored in this key is used as the \meta{text} if + The macro or code stored in this key is used as the \meta{text} of the node. Inside the \meta{code}, the following macros are available: % @@ -1335,7 +1336,7 @@ several nodes have the same label. get created. \end{enumerate} % - In total, this is exactly the behaviour you would expect of a trie: + In total, this is exactly the behavior you would expect of a trie: % \begin{codeexample}[preamble={\usetikzlibrary{graphs}}] \tikz \graph [trie] { @@ -2804,7 +2805,7 @@ The following keys place nodes in a $N\times M$ grid. Options like |grow up| or |branch right| do not take the sizes of the to-be-positioned nodes into account -- all nodes are placed quite ``dumbly'' at grid positions. It turns out that the |Cartesian placement| can also be used to -place notes in such a way that their height and/or width is taken into account. +place nodes in such a way that their height and/or width is taken into account. Note, however, that while the following options may yield an adequate placement in many situations, when you need advanced alignments you should use a |matrix| or advanced offline strategies to place the nodes. |