使用的代码:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{shapes}
\usepackage{smartdiagram}
\usetikzlibrary{arrows}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\begin{document}
\begin{center}
\smartdiagram[constellation diagram]{Suggested Solutions
,Hardware Optimization Techniques,Software Optimization Techniques~/\\ Add}
\end{center}
\end{document}
箭头线不能相撞,文本必须更整齐地填充气泡,如果可能的话,箭头需要从中间的气泡中出现,而不是汇聚到它
答案1
有很多可用选项\smartdiagramset
(请参阅手册以获取完整列表)。如果您还在有用的地方添加换行符(\\
),您可以获得以下内容:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{smartdiagram}
\begin{document}
\begin{center}
\smartdiagramset{
planet text width=2.5cm, % text width of central node
satellite text width=2.5cm, % text width of side nodes
distance planet-text=2mm, % padding around text in central node
distance planet-satellite=4.5cm, % distance from central node to side nodes
}
\smartdiagram[constellation diagram]{
Suggested Solutions,
Hardware\\Optimization\\Techniques,
Software\\Optimization\\Techniques/\\ Add
}
\end{center}
\end{document}