diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-folding.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-folding.tex | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-folding.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-folding.tex index cd9092874c5..7deff0a554d 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-folding.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-folding.tex @@ -18,7 +18,10 @@ Here is a big example that produces a diagram for a calendar: % -\begin{codeexample}[leave comments] +\begin{codeexample}[ + leave comments, + preamble={\usetikzlibrary{calendar,folding}}, +] \sffamily\scriptsize \tikz \pic [ transform shape, @@ -78,7 +81,7 @@ The foldings are sorted by number of faces. Here is a simple example: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [ transform shape, folding line length=6mm, @@ -99,7 +102,7 @@ The foldings are sorted by number of faces. \begin{stylekey}{/tikz/every fold (initially help lines)} Executed for every line that should be folded. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic[ every cut/.style=red, every fold/.style=dotted, @@ -118,7 +121,7 @@ The foldings are sorted by number of faces. \begin{pictype}{tetrahedron truncated folding}{} A folding of a truncated tetrahedron. % -\begin{codeexample}[width=5cm] +\begin{codeexample}[width=5cm,preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { tetrahedron truncated folding }; \end{codeexample} @@ -128,7 +131,7 @@ The foldings are sorted by number of faces. \begin{pictype}{cube folding}{} A folding of a cube. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cube folding }; \end{codeexample} @@ -138,7 +141,7 @@ The foldings are sorted by number of faces. \begin{pictype}{cube truncated folding}{} A folding of a truncated cube. % -\begin{codeexample}[width=5cm] +\begin{codeexample}[width=5cm,preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cube truncated folding }; \end{codeexample} @@ -148,7 +151,7 @@ The foldings are sorted by number of faces. \begin{pictype}{octahedron folding}{} A folding of an octahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { octahedron folding }; \end{codeexample} @@ -158,7 +161,7 @@ The foldings are sorted by number of faces. \begin{pictype}{octahedron folding}{} A folding of a truncated octahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { octahedron truncated folding }; \end{codeexample} @@ -168,7 +171,7 @@ The foldings are sorted by number of faces. \begin{pictype}{dodecahedron folding}{} A folding of a dodecahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { dodecahedron folding }; \end{codeexample} @@ -178,7 +181,7 @@ The foldings are sorted by number of faces. \begin{pictype}{dodecahedron' folding}{} This is an alternative folding of a dodecahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { dodecahedron' folding }; \end{codeexample} @@ -188,7 +191,7 @@ The foldings are sorted by number of faces. \begin{pictype}{cuboctahedron folding}{} A folding of a cuboctahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cuboctahedron folding }; \end{codeexample} @@ -198,7 +201,7 @@ The foldings are sorted by number of faces. \begin{pictype}{cuboctahedron truncated folding}{} A folding of a truncated cuboctahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cuboctahedron truncated folding }; \end{codeexample} @@ -208,7 +211,7 @@ The foldings are sorted by number of faces. \begin{pictype}{icosahedron folding}{} A folding of an icosahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { icosahedron folding }; \end{codeexample} @@ -218,7 +221,7 @@ The foldings are sorted by number of faces. \begin{pictype}{rhombicuboctahedron folding}{} A folding of an rhombicuboctahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { rhombicuboctahedron folding }; \end{codeexample} @@ -228,7 +231,7 @@ The foldings are sorted by number of faces. \begin{pictype}{snub cube folding}{} A folding of a snub cube. % -\begin{codeexample}[width=5cm] +\begin{codeexample}[width=5cm,preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { snub cube folding }; \end{codeexample} @@ -238,7 +241,7 @@ The foldings are sorted by number of faces. \begin{pictype}{icosidodecahedron folding}{} A folding of an icosidodecahedron. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{folding}}] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { icosidodecahedron folding }; \end{codeexample} |