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 | 62 |
1 files changed, 32 insertions, 30 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 b8ac1b0b022..ce23c8a4026 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 @@ -25,25 +25,27 @@ must specify the \meta{options} and nothing else may be specified between the command name and the closing semicolon. - The following \meta{options} apply: - \begin{itemize} - \itemoption{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. - \itemoption{face 1}|=|\meta{code} + The following keys may be used in the \meta{options}: + \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. - \itemoption{face 2}|=|\meta{code} + \end{key} + \begin{key}{/tikz/face 2=\meta{code}} Same as |face 1|, but for the second face. - \itemoption{face 3}|=|\meta{code} + \end{key} + \begin{key}{/tikz/face 3=\meta{code}} Same as |face 1|, but for the third face. - - There are further similar options, ending with the following: - \itemoption{face 12}|=|\meta{code} + \end{key} + There are further similar options, ending with the following: + \begin{key}{/tikz/face 12=\meta{code}} Same as |face 1|, but for the last face. - \end{itemize} + \end{key} Here is a simple example: \begin{codeexample}[] @@ -67,34 +69,34 @@ The appearance of the cut and folding lines can be influenced using the following styles: - \begin{itemize} - \itemstyle{every cut} Executed for every line that should be cut using - scissors. Empty by default. - \itemstyle{every fold} Executed for every line that should be - folded. Equal to |help lines| by default. + \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}[] -\begin{tikzpicture} - \tikzstyle{every cut}=[red] - \tikzstyle{every fold}=[dotted] +\begin{tikzpicture}[every cut/.style=red,every fold/.style=dotted] \tikzfoldingdodecahedron[folding line length=6mm]; \end{tikzpicture} \end{codeexample} - \end{itemize} + \end{stylekey} \end{command} Here is a big example that produces a diagram for a calendar: \begin{codeexample}[leave comments] \sffamily\scriptsize -\begin{tikzpicture}[transform shape] - \tikzstyle{every calendar}= - [ - at={(-8ex,4ex)}, - week list, - month label above centered, - month text=\bfseries\textcolor{red}{\%mt} \%y0, - if={(Sunday) [black!50]} - ] +\begin{tikzpicture} + [transform shape, + every calendar/.style= + { + at={(-8ex,4ex)}, + week list, + month label above centered, + month text=\bfseries\textcolor{red}{\%mt} \%y0, + if={(Sunday) [black!50]} + }] \tikzfoldingdodecahedron [ folding line length=2.5cm, |