LaTeX forum ⇒ Graphics, Figures & Tableserror on compiling mind mapping Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
huu2014
Posts: 6
Joined: Fri Feb 21, 2014 1:45 pm

error on compiling mind mapping

Postby huu2014 » Sat Sep 09, 2017 10:54 pm

Hello, all,
I am trying to draw a mind map and below is the latex code, I have not added formating yet. The problem is am getting error

! Extra }, or forgotten \endgroup.l.30 }

I have tried to follow up, the code and I cant see: Please any help.
  1. \documentclass[a4paper, 12pt]{article}
  2. %
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{tikz}
  5. \usetikzlibrary{mindmap}
  6.  
  7. \pagestyle{empty}
  8. \begin{document}
  9.  
  10. \begin{tikzpicture}
  11.  
  12. % create a concepts note.
  13.  
  14. \node{A}
  15. child {node {B}
  16. child{node {C}}
  17. child{node {D}}
  18. child{node {E}}
  19. child{node {F}}
  20. child{node {G}}
  21. child{node{H}}
  22. }
  23. child {node {C}
  24. child {node {D}}
  25. child {node {E}}
  26. child {node {F}}
  27. child {node {G}}
  28. child {node {H}}
  29.  
  30. }
  31.  
  32. child {node {D}
  33. child {node {E}}
  34. child {node {F}}
  35. child {node {G}}
  36. child {node {H}}
  37. child {node {K}}
  38. }
  39.  
  40.  
  41. child {node {E}
  42. child {node {F}}
  43. child {node {G}}
  44. child {node {H}}
  45. child {node {K}}
  46. child {node {N}}
  47.  
  48. };
  49.  
  50. \end{tikzpicture}
  51.  
  52. \end{document}


Thank you.
huu

User avatar
Johannes_B
Site Moderator
Posts: 3492
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Sep 10, 2017 7:59 am

You have some blank lines in your tikz code. Remove them. A blank line has a special meaning in TeX and that is confusing TikZ.

Without the blank lines, it works fine.
*Took me a while to figure that out myself. I never use TikZ and thought it would take better care of that.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

huu2014
Posts: 6
Joined: Fri Feb 21, 2014 1:45 pm

Postby huu2014 » Sun Sep 10, 2017 8:42 am

Dear Johannes,

Thank you very much, let me work on it.

huu


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests