Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\documentclass[a4paper, pdftex]{book} 


    \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; 


The error is:

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

UPDATE: It seems I might be missing something like:


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...


share|improve this question

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.

2 Answers 2

up vote 3 down vote accepted

What is your pgf version? It appears that l-systems library is in the CVS version of pgf, not in the regular 2.0 version.

share|improve this answer

I had the same problem. After I updated to a newer TeX installation (TeX-Live 2010 I think), everything worked fine. Tikz is pretty new in the LaTeX world and seems to be changing fairly rapidly.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.