Tikz Mindmap - 如何获得更多节点

Tikz Mindmap - 如何获得更多节点
% Author: Till Tantau
% Source: The PGF/TikZ manual
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}

\begin{document}
\pagestyle{empty}

\begin{comment}
:Title: Computer science mindmap
:Tags: Manual, Mindmap

Version 1.09 of PGF/TikZ added a library for drawing mindmaps. Here's an example
from the manual. 

| Author: Till Tantau
| Source: The PGF/TikZ manual

\end{comment}
\begin{center}
\begin{tikzpicture}
  \path[mindmap,concept color=blue,text=white]
    node[concept] {Shabda}[clockwise from=0]
child[concept color=green!50!black] {node[concept] {Prathama}[clockwise from=60]
child { node[concept] {Ekvachana} }
      child { node[concept] {Dvivachana} }
      child { node[concept] {Bahuvachana} }
}
child[concept color=red!50!black] {node[concept] {Dvitiya}[clockwise from=15]
child { node[concept] {Ekvachana} }
      child { node[concept] {Dvivachana} }
      child { node[concept] {Bahuvachana} }
}
child[concept color=red!50!black] {node[concept] {Trutiya}[clockwise from=-45]
child { node[concept] {Ekvachana} }
      child { node[concept] {Dvivachana} }
      child { node[concept] {Bahuvachana} }
}
child[concept color=red!50!black] {node[concept] {Chaturthi}[clockwise from=-90]
child { node[concept] {Ekvachana} }
      child { node[concept] {Dvivachana} }
      child { node[concept] {Bahuvachana} }
}
child[concept color=red!50!black] {node[concept] {Panchami}[clockwise from=-90]
child { node[concept] {Ekvachana} }
      child { node[concept] {Dvivachana} }
      child { node[concept] {Bahuvachana} }
}
child[concept color=red!50!black] {node[concept] {Shasthi}[clockwise from=135]
child { node[concept] {Ekvachana} }
      child { node[concept] {Dvivachana} }
      child { node[concept] {Bahuvachana} }
};

\end{tikzpicture}
\end{center}
\end{document}

我从 texexample.net 上获取了此示例,并根据自己的需要对其进行了修改,但是我无法获得超过 6 个节点。这是上限吗?或者我可以为所有节点设置 8 个节点和 3 个子节点吗?

答案1

可以有更多节点。您可以更改sibling angle

以下是具有 12 个子节点的示例:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\begin{document}
\begin{tikzpicture}
  \path[mindmap,concept color=blue,text=white,
    level 1 concept/.append style=
      {every child/.style={concept color=blue!70},sibling angle=-30}]
      node[concept] {\Huge\bfseries TikZ}[clockwise from=0]
        child foreach \i in {1,...,12} {node[concept]{\LARGE\bfseries\i}};
\end{tikzpicture}
\end{document}

替代文本

相关内容