在以下 MWE 中,我手动\setlength\itemsep{7em}
定义项目之间的间距。有没有一种很好且可重复使用的自动调整方法,以便幻灯片从底部看起来不会是空的?但是,它应该从顶部开始,以确保某些动画在叠加层中停留在同一位置。(例如第 2 帧)
提前致谢
\documentclass{beamer}
\mode<presentation>{\usetheme{Madrid}}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered,
text width=3cm, thick,draw=black, fill=orange!30]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{document}
\begin{frame}[t]{Frame Title}
\begin{itemize}
\setlength\itemsep{7em}
\item 1
\item<+(1)-> 2
\item<+(1)-> 3
\end{itemize}
\end{frame}
\begin{frame}[t]{Frame Title}{}
\begin{itemize}
\item 1
\begin{tikzpicture}[node distance=3cm]
\node<+(1)-> (root) [process] {root};
\node<.(1)-> (child1) [process, below of=root, xshift=-4cm] {child1};
\draw<.(1)-> [arrow] (root.south) -- (child1.north);
\node<+(1)-> (child2) [process, below of=root, xshift=4cm] {child2};
\draw<.(1)-> [arrow] (root.south) -- (child2.north);
\end{tikzpicture}
\item <+(1)-> 2
\end{itemize}
\end{frame}
\end{document}