如何在思维导图中将子节点添加到子节点?

如何在思维导图中将子节点添加到子节点?

我想通过以下方式来组织思维导图:

  • 格式化
  • 将子节点“级别 1-2-1、级别 1-2-3、级别 1-2-3”添加到节点级别 1-2

在此处输入图片描述

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}

\begin{document}
\pagestyle{empty}
{\centering
  \makebox[0pt]{%
    \begin{tikzpicture}
      [mindmap,
      grow cyclic,
      every node/.style=concept,
      concept color=teal!40,
      level 1/.append style={sibling angle=360/7},
      level 2/.append style={sibling angle=37.5},
      ]
      \node [root concept] {Leve 0}
        child [concept color=purple!40]{
          node    {Level 1}
          child { node    {Level 1-1} }
          child { node    {Level 1-2} }
          child { node    {Level 1-3} }
          child { node    {Level 1-4} }
        }
        child [concept color=pink!40, rotate=-10]{
          node     {Level 2}
          child { node    {Level 2-1} }
          child { node    {Level 2-2} }
                     child { node    {Level 2-2} }
                     child { node    {Level 2-3} }
        }
        child [concept color=green!40, rotate=-20]{
          node  {Level 3}
          child { node {Level 3-1} }
          child { node {Level 3-2} }
          child { node {Level 3-3} }
          child { node {Level 3-4} }
        }
        child [concept color=red!40, rotate=-10]{
          node  {Level 4}[counterclockwise from=-115]
          child  { node {Level 4-1} }
          child { node {Level 4-2} }
          child { node {Level 4-3} }
          child { node {Level 4-4} }
          child { node {Feeding practices} }
        }
        child [concept color=blue!40, rotate=-7.5]{
          node     {Level 5}
          child { node {Level 5-1} }
          child { node {Level 5-2} }
          child { node {Level 5-3} }
          child { node {Level 5-4} }
          child { node {Level 5-5} }
          child { node {Level 5-6} }
        }
        child [concept color=yellow!40, rotate=-5]{
          node   {Level 6}%[clockwise from=45, level distance=8cm]
         child { node {Level 6-3} }
        } 
      ;
  \end{tikzpicture}}\par}
\end{document}

答案1

我添加了这些节点并修复了重叠。

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}

\begin{document}
\pagestyle{empty}
{\centering
  \makebox[0pt]{%
    \begin{tikzpicture}
      [mindmap,
      grow cyclic,
      every node/.style=concept,
      concept color=teal!40,
      level 1/.append style={sibling angle=360/7},
      level 2/.append style={sibling angle=37.5},
      ]
      \node [root concept] {Level 0}
        child [concept color=purple!40]{
          node    {Level 1}
          child { node    {Level 1-1} }
          child { node    {Level 1-2} 
            child {node {Level 1-2-1}}
            child {node {Level 1-2-2}}
            child {node {Level 1-2-3}}}
          child { node    {Level 1-3} }
          child { node    {Level 1-4} }
        }
        child [concept color=pink!40, rotate=10]{
          node     {Level 2}
          child { node    {Level 2-1} }
          child { node    {Level 2-2} }
                     child { node    {Level 2-2} }
                     child { node    {Level 2-3} }
        }
        child [concept color=green!40, rotate=20]{
          node  {Level 3}
          child { node {Level 3-1} }
          child { node {Level 3-2} }
          child { node {Level 3-3} }
          child { node {Level 3-4} }
        }
        child [concept color=red!40, rotate=30]{
          node  {Level 4}[counterclockwise from=-115]
          child  { node {Level 4-1} }
          child { node {Level 4-2} }
          child { node {Level 4-3} }
          child { node {Level 4-4} }
          child { node {Feeding practices} }
        }
        child [concept color=blue!40, rotate=40]{
          node     {Level 5}
          child { node {Level 5-1} }
          child { node {Level 5-2} }
          child { node {Level 5-3} }
          child { node {Level 5-4} }
          child { node {Level 5-5} }
          child { node {Level 5-6} }
        }
        child [concept color=yellow!40, rotate=45]{
          node   {Level 6}%[clockwise from=45, level distance=8cm]
         child { node {Level 6-3} }
        } 
      ;
  \end{tikzpicture}}\par}
\end{document}

在此处输入图片描述

相关内容