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, 1 insertions, 10 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 1600e6f5378..009660a911d 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,25 +474,20 @@ 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
@@ -500,17 +495,13 @@ 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}