summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-decorations.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-decorations.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-decorations.tex11
1 files changed, 10 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-decorations.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-decorations.tex
index 009660a911d..1600e6f5378 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-decorations.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-decorations.tex
@@ -474,20 +474,25 @@ decorations, not with meta-decorations.
which |0pt| by default. Thus, for the |pre| option to have any effect, you
also need to set the |pre length| option.
%
- % TODO: Nesting tikzpictures is NOT supported
\begin{codeexample}[]
+\begin{tikzpicture}
\tikz [decoration={zigzag,pre=lineto,pre length=1cm}]
\draw [decorate] (0,0) -- (2,1) arc (90:0:1);
+\end{tikzpicture}
\end{codeexample}
%
\begin{codeexample}[]
+\begin{tikzpicture}
\tikz [decoration={zigzag,pre=moveto,pre length=1cm}]
\draw [decorate] (0,0) -- (2,1) arc (90:0:1);
+\end{tikzpicture}
\end{codeexample}
%
\begin{codeexample}[]
+\begin{tikzpicture}
\tikz [decoration={zigzag,pre=crosses,pre length=1cm}]
\draw [decorate] (0,0) -- (2,1) arc (90:0:1);
+\end{tikzpicture}
\end{codeexample}
Note that the default |pre| option is |lineto|, not |curveto|. This means
@@ -495,13 +500,17 @@ decorations, not with meta-decorations.
reasons). Change the |pre| key to |curveto| if you have a curved path.
%
\begin{codeexample}[]
+\begin{tikzpicture}
\tikz [decoration={zigzag,pre length=3cm}]
\draw [decorate] (0,0) -- (2,1) arc (90:0:1);
+\end{tikzpicture}
\end{codeexample}
%
\begin{codeexample}[]
+\begin{tikzpicture}
\tikz [decoration={zigzag,pre=curveto,pre length=3cm}]
\draw [decorate] (0,0) -- (2,1) arc (90:0:1);
+\end{tikzpicture}
\end{codeexample}
%
\end{key}