diff options
author | Karl Berry <karl@freefriends.org> | 2019-01-05 22:40:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-01-05 22:40:38 +0000 |
commit | 22536bb2b5257046d271b1eaa11b4a275d5ec041 (patch) | |
tree | 2500eaf5c26b11e00ebd33a64fccfa332cd5a66c /Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-folding.tex | |
parent | cf794f0e2db6857972a9d48d4466a4f03a7057a0 (diff) |
pgf (5jan19)
git-svn-id: svn://tug.org/texlive/trunk@49607 c570f23f-e606-0410-a88d-b1316a301751
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 | 166 |
1 files changed, 91 insertions, 75 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 93f832f826c..58a7d4c9a19 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 @@ -9,17 +9,15 @@ \section{Paper Folding Diagrams Library} - \label{section-calender-folding} \begin{tikzlibrary}{folding} - This library defines pic types for creating paper folding - diagrams. Many thanks to Nico van Cleemput for providing most of the - code. + This library defines pic types for creating paper folding diagrams. Many + thanks to Nico van Cleemput for providing most of the code. \end{tikzlibrary} Here is a big example that produces a diagram for a calendar: - +% \begin{codeexample}[leave comments] \sffamily\scriptsize \tikz \pic [ @@ -50,29 +48,36 @@ Here is a big example that produces a diagram for a calendar: The foldings are sorted by number of faces. \begin{pictype}{tetrahedron folding}{} - This pic type draws a folding diagram for a tetrahedron. - The following keys influence the pic: - \begin{key}{/tikz/folding line length=\meta{dimension}} - Sets the length of the base line for folding. For the dodecahedron - this is the length of all the sides of the pentagons. - \end{key} - \begin{key}{/tikz/face 1=\meta{code}} - The \meta{code} is executed for the first face of the - dodecahedron. When it is executed, the coordinate system will have - been shifted and rotated such that it lies at the middle of the - first face of the dodecahedron. - \end{key} - \begin{key}{/tikz/face 2=\meta{code}} - Same as |face 1|, but for the second face. - \end{key} - \begin{key}{/tikz/face 3=\meta{code}} - \end{key} - \begin{key}{/tikz/face 4=\meta{code}} - \end{key} - There are further similar options for more faces (for commands - shown later). - - Here is a simple example: + This pic type draws a folding diagram for a tetrahedron. The following keys + influence the pic: + % + \begin{key}{/tikz/folding line length=\meta{dimension}} + Sets the length of the base line for folding. For the dodecahedron this + is the length of all the sides of the pentagons. + \end{key} + % + \begin{key}{/tikz/face 1=\meta{code}} + The \meta{code} is executed for the first face of the dodecahedron. + When it is executed, the coordinate system will have been shifted and + rotated such that it lies at the middle of the first face of the + dodecahedron. + \end{key} + % + \begin{key}{/tikz/face 2=\meta{code}} + Same as |face 1|, but for the second face. + \end{key} + % + \begin{key}{/tikz/face 3=\meta{code}} + \end{key} + % + \begin{key}{/tikz/face 4=\meta{code}} + \end{key} + % + There are further similar options for more faces (for commands shown + later). + + Here is a simple example: + % \begin{codeexample}[] \tikz \pic [ transform shape, @@ -84,14 +89,16 @@ The foldings are sorted by number of faces. ] {tetrahedron folding}; \end{codeexample} - The appearance of the cut and folding lines can be influenced using - the following styles: - \begin{stylekey}{/tikz/every cut (initially \normalfont empty)} - Executed for every line that should be cut using scissors. - \end{stylekey} - \begin{stylekey}{/tikz/every fold (initially help lines)} - Executed for every line that should be - folded. + The appearance of the cut and folding lines can be influenced using the + following styles: + % + \begin{stylekey}{/tikz/every cut (initially \normalfont empty)} + Executed for every line that should be cut using scissors. + \end{stylekey} + % + \begin{stylekey}{/tikz/every fold (initially help lines)} + Executed for every line that should be folded. + % \begin{codeexample}[] \tikz \pic[ every cut/.style=red, @@ -99,138 +106,147 @@ The foldings are sorted by number of faces. folding line length=6mm ] { tetrahedron folding }; \end{codeexample} - \end{stylekey} - - There is one style that is mainly useful for the present - documentation: - \begin{stylekey}{/tikz/numbered faces} - Sets |face |\meta{i} to |\node {|\meta{i}|};| for all~$i$. - \end{stylekey} - + \end{stylekey} + + There is one style that is mainly useful for the present documentation: + % + \begin{stylekey}{/tikz/numbered faces} + Sets |face |\meta{i} to |\node {|\meta{i}|};| for all~$i$. + \end{stylekey} \end{pictype} \begin{pictype}{tetrahedron truncated folding}{} - A folding of a truncated tetrahedron. + A folding of a truncated tetrahedron. + % \begin{codeexample}[width=5cm] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { tetrahedron truncated folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{cube folding}{} - A folding of a cube. + A folding of a cube. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cube folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{cube truncated folding}{} - A folding of a truncated cube. + A folding of a truncated cube. + % \begin{codeexample}[width=5cm] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cube truncated folding }; \end{codeexample} + % \end{pictype} \begin{pictype}{octahedron folding}{} - A folding of an octahedron. + A folding of an octahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { octahedron folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{octahedron folding}{} - A folding of a truncated octahedron. + A folding of a truncated octahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { octahedron truncated folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{dodecahedron folding}{} - A folding of a dodecahedron. - + A folding of a dodecahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { dodecahedron folding }; \end{codeexample} + % \end{pictype} - - \begin{pictype}{dodecahedron' folding}{} - This is an alternative folding of a dodecahedron. + This is an alternative folding of a dodecahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { dodecahedron' folding }; \end{codeexample} + % \end{pictype} - - - \begin{pictype}{cuboctahedron folding}{} - A folding of a cuboctahedron. + A folding of a cuboctahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cuboctahedron folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{cuboctahedron truncated folding}{} - A folding of a truncated cuboctahedron. + A folding of a truncated cuboctahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { cuboctahedron truncated folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{icosahedron folding}{} - A folding of an icosahedron. + A folding of an icosahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { icosahedron folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{rhombicuboctahedron folding}{} - A folding of an rhombicuboctahedron. + A folding of an rhombicuboctahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { rhombicuboctahedron folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{snub cube folding}{} - A folding of a snub cube. + A folding of a snub cube. + % \begin{codeexample}[width=5cm] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { snub cube folding }; \end{codeexample} + % \end{pictype} - \begin{pictype}{icosidodecahedron folding}{} - A folding of an icosidodecahedron. + A folding of an icosidodecahedron. + % \begin{codeexample}[] \tikz \pic [folding line length=6mm, numbered faces, transform shape] { icosidodecahedron folding }; \end{codeexample} + % \end{pictype} - -%%% Local Variables: +%%% Local Variables: %%% mode: latex %%% TeX-master: "pgfmanual-pdftex-version" -%%% End: +%%% End: |