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.

Looking to produce a tikz mindmap which gives the error missing number treated as zero l.9 . Can anyone tell me what the problem is?

\documentclass[10pt]{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}

\begin{document} 

\tikz [mindmap, every node/.style=concept, concept color=black!20, grow=cyclic,
    level 1/.append style={level distance=4.5cm,sibling angle=90},
    level 2/.append style={level distance=3.5cm, sibling angle=45}] 
  \node [root concept] {Computational Complexity} %  root
    child { node {Computational Problems}
      child { node {Problem Measures} }
      child { node {Problem Aspects} }
      child { node {Problem Domains} }
      child { node {Key Problems} }
    }
    child { node {Computational Models}
      child { node {Turing Machines} }
      child { node {Random-Access Machines} }
      child { node {Circuits} }
      child { node {Binary Decision Diagrams} }
      child { node {Oracle Machines} }
      child { node {Programming in Logic} }
    }
    child { node {Measuring Complexity}
      child { node {Complexity Measures} }
      child { node {Classifying Complexity} }
      child { node {Comparing Complexity} }
      child { node {Describing Complexity} }
    }
    child { node {Solving Problems}
      child { node {Exact Algorithms} }
      child { node {Randomization} }
      child { node {Fixed-Parameter Algorithms} }
      child { node {Parallel Computation} }
      child { node {Partial Solutions} }
      child { node {Approximation} }
};
\end{document} 
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Replacing grow=cyclic with grow cyclic yields:

enter image description here

share|improve this answer
    
Sooo simple … don’t tell David! ;-) –  Speravir Nov 27 '12 at 2:52
    
@Speravir: Only simple once solve it, took me a while to track it down as I was sure it wast the usual missing tikz library, and the error message seemed to imply that something was missing units.. Plus David will probably never look at this question -- it is tikz. :-) –  Peter Grill Nov 27 '12 at 3:00
    
Yes, I can imagine. It should be a joke. :-) –  Speravir Nov 27 '12 at 3:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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