diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-lsystems.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-lsystems.tex | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-lsystems.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-lsystems.tex index 0aeb8113b01..75462b19720 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-lsystems.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-lsystems.tex @@ -126,13 +126,13 @@ only defined when the \meta{specification} argument is executed. The symbols |[| and |]| act like a stack: |[| pushes the state of the L-system on to the stack, and |]| pops a state off the stack. - When \meta{code} is executed the transformation matrix is set up + When \meta{code} is executed, the transformation matrix is set up so that the origin is at the current position and the positive x-axis ``points forward'', so |\pgfpathlineto{\pgfpoint{1cm}{0cm}}| draws a line 1cm forward. The following keys can alter the production of an L-system. However, -thy do not store values in themselves. +they do not store values in themselves. \begin{key}{/pgf/lindenmayer system/step=\meta{length} (initially 5pt)} How far the L-system moves forward if required. This key sets the @@ -161,7 +161,7 @@ thy do not store values in themselves. The value is stored in the \TeX{} macro |\pgflsystemrandomizeanglepercent|. \end{key} -For speed and convenience, when the code for a symbol is executed the +For speed and convenience, when the code for a symbol is executed, the following commands are available. \begin{command}{\pgflsystemcurrentstep} @@ -189,18 +189,18 @@ The following commands may be useful if you wish to define your own symbols. \begin{command}{\pgflsystemrandomizestep} - Randomizes the value in |\pgflsystemcurrentstep| according to the - value of the |randomize| |step| |percent| key. + Randomizes the value in |\pgflsystemcurrentstep| according to the + current value of the key |randomize step percent|. \end{command} \begin{command}{\pgflsystemrandomizeleftangle} Randomizes the value in |\pgflsystemcurrentleftangle| according to - the value of the |randomize| |angle| |percent| key. + the value of the |randomize angle percent| key. \end{command} \begin{command}{\pgflsystemrandomizerightangle} Randomizes the value in |\pgflsystemcurrentrightangle| according - to the value of the |randomize| |angle| key. + to the value of the |randomize angle| key. \end{command} \begin{command}{\pgflsystemdrawforward} @@ -252,17 +252,15 @@ symbols. need not have been declared using |\symbol| or exist as a default symbol (in fact, the more interesting L-systems depend on using symbols with no corresponding code, to control the ``growth'' of the - system). - \meta{body} consists of a string of symbols, which again need not - necessarily have any code associated with them. - + system). \meta{body} consists of a string of symbols, which again + need not necessarily have any code associated with them. \end{command} - As an example, the following shows an L-system that uses - some of these commands. This example illustrates the point - that some symbols, in this case |A| and |B|, do not have to - have code associated with them. They simply control the - growth of the system. +As an example, the following shows an L-system that uses +some of these commands. This example illustrates the point +that some symbols, in this case |A| and |B|, do not have to +have code associated with them. They simply control the +growth of the system. \begin{codeexample}[pre={\nullfont\expandafter\let\csname pgf@lsystem@Hilbert curve\endcsname=\relax}] \pgfdeclarelindenmayersystem{Hilbert curve}{ @@ -286,11 +284,11 @@ The following command is used to run an L-system in \pgfname: \begin{command}{\pgflindenmayersystem\marg{name}\marg{axiom}\marg{order}} Runs the L-system called \meta{name} using the input string \meta{axiom} for \meta{order} iterations. - In general, prior to calling this command the + In general, prior to calling this command, the transformation matrix should be set appropriately for shifting and rotating, and a move-to to the (transformed) origin should be executed. This origin will be where the L-system starts. - In addition the relevant keys should be set appropriately. + In addition, the relevant keys should be set appropriately. \begin{codeexample}[] \begin{tikzpicture} @@ -305,7 +303,7 @@ The following command is used to run an L-system in \pgfname: \end{tikzpicture} \end{codeexample} - Note that, it is perfectly feasible for an L-system to define + Note that it is perfectly feasible for an L-system to define special symbols which perform the move-to and use-path operations. @@ -346,9 +344,7 @@ The following command is used to run an L-system in \pgfname: This library adds some additional keys for specifying L-systems. These keys only work in \tikzname{} and all -have the same path, namely, |/pgf/lindenmayer| |system|, but so -you do not have to keep repeating this path the following keys are -provided: +have the same path, namely, |/pgf/lindenmayer| |system|, but the following keys are provided for convenience, so that you do not have to keep repeating this path: \begin{stylekey}{/pgf/lindenmayer system=\marg{keys}} \keyalias{tikz} @@ -362,15 +358,15 @@ A more compact version of the previous key. \end{stylekey} \begin{key}{/pgf/lindenmayer system/name=\marg{name}} - Set the name for the L-system. + Sets the name for the L-system. \end{key} \begin{key}{/pgf/lindenmayer system/axiom=\marg{string}} - Set the axiom (or input string) for the L-system. + Sets the axiom (or input string) for the L-system. \end{key} \begin{key}{/pgf/lindenmayer system/order=\marg{integer}} - Set the number of iterations the L-system will perform. + Sets the number of iterations the L-system will perform. \end{key} \begin{key}{/pgf/lindenmayer system/rule set=\marg{list}} |