From 18d9ec0eba21e6b8c55cdd50afb91c56e02ce7bf Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 20 Dec 2019 03:00:48 +0000 Subject: CTAN sync 201912200300 --- .../pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-turtle.tex') 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} -- cgit v1.2.3