答案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}