Graphics, Figures & Tableserror on compiling mind mapping

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

error on compiling mind mapping

Post by huu2014 »

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.

Code: Select all

\documentclass[a4paper, 12pt]{article}
%
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{mindmap}

\pagestyle{empty}
\begin{document}

\begin{tikzpicture}

% create a concepts note.

\node{A}
     child {node {B}
           child{node {C}}
           child{node {D}}
           child{node {E}}
           child{node {F}}
           child{node {G}}
           child{node{H}}
          }
     child {node {C}
         child {node {D}}
         child {node {E}}
         child {node {F}}
         child {node {G}}
         child {node {H}}
         
         }
         
     child {node {D}
           child {node {E}}
           child {node {F}}
           child {node {G}}
           child {node {H}}
           child {node {K}}
     }
     
     
     child {node {E}
           child {node {F}}
           child {node {G}}
           child {node {H}}
           child {node {K}}
           child {node {N}}
     
     };

\end{tikzpicture}

\end{document}
Thank you.
huu

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

error on compiling mind mapping

Post by Johannes_B »

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

error on compiling mind mapping

Post by huu2014 »

Dear Johannes,

Thank you very much, let me work on it.

huu
Post Reply