summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-chains.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-chains.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-chains.tex28
1 files changed, 14 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-chains.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-chains.tex
index da838741519..1dc247866fb 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-chains.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-chains.tex
@@ -74,7 +74,7 @@ The first step toward creating a chain is to use the |start chain| option.
Other than this, this key has no further effect. In particular, to place
nodes on the chain, you must use the |on chain| option, described next.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain]
% The chain is called just "chain"
\node [on chain] {A};
@@ -83,7 +83,7 @@ The first step toward creating a chain is to use the |start chain| option.
\end{tikzpicture}
\end{codeexample}
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains,scopes}}]
\begin{tikzpicture}
% Same as above, using the scope shorthand
{ [start chain]
@@ -94,7 +94,7 @@ The first step toward creating a chain is to use the |start chain| option.
\end{tikzpicture}
\end{codeexample}
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain=1 going right,
start chain=2 going below,
node distance=5mm,
@@ -123,7 +123,7 @@ The first step toward creating a chain is to use the |start chain| option.
first is to change the direction of a chain as it is being constructed. For
this, just give this option somewhere inside the scope of the chain.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain=going right,node distance=5mm]
\node [draw,on chain] {Hello};
\node [draw,on chain] {World};
@@ -136,7 +136,7 @@ The first step toward creating a chain is to use the |start chain| option.
The second application is to reactivate a chain after it ``has already been
closed down''.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains,scopes}}]
\begin{tikzpicture}[node distance=5mm,
every node/.style=draw]
{ [start chain=1]
@@ -231,7 +231,7 @@ The first step toward creating a chain is to use the |start chain| option.
to |\tikzchainprevious| and |\tikzchaincount| for doing your
positioning calculations.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain=circle placed {at=(\tikzchaincount*30:1.5)}]
\foreach \i in {1,...,10}
\node [on chain] {\i};
@@ -252,7 +252,7 @@ The first step toward creating a chain is to use the |start chain| option.
the right of the previous one, spaced by the current value of
|node distance|.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain,node distance=5mm]
\node [draw,on chain] {};
\node [draw,on chain] {Hallo};
@@ -263,7 +263,7 @@ The first step toward creating a chain is to use the |start chain| option.
The optional \meta{direction} allows us to temporarily change the direction
in the middle of a chain:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain,node distance=5mm]
\node [draw,on chain] {Hello};
\node [draw,on chain] {World};
@@ -275,7 +275,7 @@ The first step toward creating a chain is to use the |start chain| option.
You can also use more complicated computations in the \meta{direction}:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain=going {at=(\tikzchainprevious),shift=(30:1)}]
\draw [help lines] (0,0) grid (3,2);
\node [draw,on chain] {1};
@@ -326,7 +326,7 @@ process.
In particular, it is possible to continue to path after a |\chainin|
command, though that does not seem very useful.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[node distance=5mm,
every node/.style=draw,every join/.style=->]
\draw [help lines] (0,0) grid (3,2);
@@ -347,7 +347,7 @@ process.
connected using a chain
%
{\catcode`\|=12
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains,matrix,scopes,shapes.geometric}}]
\begin{tikzpicture}[every node/.style=draw]
\matrix [matrix of nodes,column sep=5mm,row sep=5mm]
{
@@ -391,7 +391,7 @@ process.
order to connect it to several nodes. This is especially useful for joining
in branches, see the next section.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains}}]
\begin{tikzpicture}[start chain,node distance=5mm,
every join/.style={->,red}]
\node [draw,on chain,join] {};
@@ -438,7 +438,7 @@ described.
to the fork node.
\end{itemize}
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains,scopes}}]
\begin{tikzpicture}[every on chain/.style=join,every join/.style=->,
node distance=2mm and 1cm]
{ [start chain=trunk]
@@ -473,7 +473,7 @@ described.
chain}|/|\meta{branch name} is used as the chain name, rather than just
\meta{branch name}.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{chains,scopes}}]
\begin{tikzpicture}[every on chain/.style=join,every join/.style=->,
node distance=2mm and 1cm]
{ [start chain=trunk]