这是我目前所拥有的。我怎样才能使这个数字具有吸引力。
平均能量损失
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
positioning}
\begin{document}
\begin{frame}
\frametitle{Flowchart}
\begin{center}
\begin{tikzpicture}[
node distance = 2mm and 6mm,
arr/.style = {-Straight Barb, semithick},
M/.style = {draw, outer sep = 1mm},
N/.style = {M, rounded corners=3mm},
]
\node (n1) [N] {text};
\node (n2) [M, right=of n1] {text};
\node (n3) [N, above right=of n2] {text};
\node (n4) [N, below right=of n2] {text};
%
\draw[arr] (n1) -- (n2);
\draw[arr] (n2) -- (n3);
\draw[arr] (n2) -- (n4);
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}
答案1
我将添加以下细节,使流程图更加美观和详细:
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, positioning}
\begin{document}
\begin{frame}
\frametitle{My Flowchart}
\begin{center}
\begin{tikzpicture}[
node distance = 2mm and 6mm,
arr/.style = {-Straight Barb, semithick, color=blue},
M/.style = {draw, outer sep = 1mm, fill=red!30},
N/.style = {M, rounded corners=3mm, fill=green!30},
]
\node (n1) [N, label=below:{Node 1}] {text};
\node (n2) [M, right=of n1, label=below:{Node 2}] {text};
\node (n3) [N, above right=of n2, label=right:{Node 3}] {text};
\node (n4) [N, below right=of n2, label=right:{Node 4}] {text};
\draw[arr] (n1) -- (n2);
\draw[arr] (n2) -- (n3);
\draw[arr] (n2) -- (n4);
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}
输出: