summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-20 03:00:48 +0000
committerNorbert Preining <norbert@preining.info>2019-12-20 03:00:48 +0000
commit18d9ec0eba21e6b8c55cdd50afb91c56e02ce7bf (patch)
tree56de5f55a6575a68557d5a384f57e3e8566c536d /graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex
parent3b24b0599bb35e1a3338fa33bfb24044a6125ba4 (diff)
CTAN sync 201912200300
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex')
-rw-r--r--graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex
index 6c1187e0c3..5a002fb3b0 100644
--- a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex
+++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex
@@ -11,17 +11,17 @@
\section{Turtle Graphics Library}
\label{section-library-tutrle}
-\begin{pgflibrary}{turtle}
+\begin{tikzlibrary}{turtle}
This little library defines some keys to create simple turtle graphics in
the tradition of the Logo programming language. These commands are mostly
for fun, but they can also be used for more ``serious'' business.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{turtle}}]
\tikz[turtle/distance=2mm]
\draw [turtle={home,forward,right,forward,left,forward,left,forward}];
\end{codeexample}
%
-\end{pgflibrary}
+\end{tikzlibrary}
Even though the |turtle| keys looks like an option, it uses the |insert path|
option internally to produce a path.
@@ -40,7 +40,7 @@ the turtle is managed independently of other path commands.
This key executes the \meta{keys} with the current key path set to
|/tikz/turtle|.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{turtle}}]
\tikz[turtle/distance=2mm]
\draw [turtle={home,fd,rt,fd,lt,fd,lt,fd}];
\end{codeexample}
@@ -69,7 +69,7 @@ the turtle is managed independently of other path commands.
This style can set up the |to path| used by turtles. By setting this
style you can change the to-path:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{turtle}}]
\tikz \draw [turtle={how/.style={bend left},home,forward,right,forward}];
\end{codeexample}
\end{stylekey}
@@ -107,7 +107,7 @@ the turtle is managed independently of other path commands.
Turtle graphics are especially nice in conjunction with the |\foreach|
statement:
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{turtle}}]
\tikz \filldraw [thick,blue,fill=blue!20]
[turtle=home]
\foreach \i in {1,...,5}