# L-Systems and TikZ [closed]

I'm trying to use L-Systems in LaTeX, but the following minimal example exits with an error:

\documentclass[a4paper, pdftex]{book}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw [green!50!black, rotate=90]
[l-system={rule set={F -> FF-[-F+F]+[+F-F]}, axiom=F, order=4, step=2pt, randomize step percent=25, angle=30, randomize angle percent=5}]
lindenmayer system;
\end{tikzpicture}

\end{document}


The error is:

! Missing \endcsname inserted.
<to be read again>
\pgf@arrows@invertl
l.8 ...t=25, angle=30, randomize angle percent=5}]


UPDATE: It seems I might be missing something like:

\usetikzlibrary{lindenmayersystems}


Which, incidentally, results in the following error:

! I can't find file tikzlibrarylindenmayersystems.code.tex'.
<argument> ...nput tikzlibrary\pgf@temp .code.tex
\catcode \@ =\csname tikz...


Thoughts?

-

## closed as too localized by Stefan Kottwitz♦Jan 31 '13 at 18:58

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.