如何在思维导图中添加图形?

如何在思维导图中添加图形?

我尝试使用 TikZ 环境在每个思维导图圆圈内包含 eps 格式的图表,但无法将这些图表置于每个圆圈的中心。我尝试在 \node 命令内使用 \centering 命令,但没有成功:

\node{\centering\includegraphics[scale=0.3]{fig_5}}

这就是我所拥有的。 在此处输入图片描述

任何帮助都将不胜感激。谢谢。

答案1

adjustbox应该可以解决问题。下图显示了使用 \begin{adjustbox}{center}和包裹超大图标的效果\end{adjustbox}

在此处输入图片描述

\documentclass{article}
\usepackage{adjustbox}
\usepackage{fullpage,graphicx,tikz}
\usetikzlibrary{mindmap}
\begin{document}
\scalebox{0.8}{
\begin{tikzpicture}
[
    mindmap,
    concept color = red!30,
    every node/.style = {concept}
]
 
\node{%
    \includegraphics[scale=0.3]{icon1}%
}
child [grow = down] {%
  node {%
    \includegraphics[scale=0.1]{icon1}%
  }
}
child [grow = north west] {%
  node {%
    \includegraphics[scale=0.2]{icon1}%
  }%
};
\end{tikzpicture}
}
\qquad
\scalebox{0.8}{
\begin{tikzpicture}
[
    mindmap,
    concept color = red!30,
    every node/.style = {concept}
]
 
\node{%
  \begin{adjustbox}{center}%
    \includegraphics[scale=0.3]{icon1}%
  \end{adjustbox}%
}
child [grow = down] {%
  node {%
    \begin{adjustbox}{center}%
      \includegraphics[scale=0.1]{icon1}%
    \end{adjustbox}%      
  }
}
child [grow = north west] {
  node {%
    \begin{adjustbox}{center}%    
      \includegraphics[scale=0.2]{icon1}%
    \end{adjustbox}%      
  }
};
\end{tikzpicture}
}
\end{document}

相关内容