\begin{frame}{Convex polygon \& concave polygon}
\begin{definition}
A \textbf{convex} polygon has all its diagonals inside the polygon. \\
A \textbf{concave} polygon has at least one diagonal outside the polygon.
\end{definition}
\only<2>{ \includegraphics[width=\textwidth]{concave_convex.pdf} }
\only<3>{ \includegraphics[width=\textwidth]{concave_convex_ans.pdf} }
\end{frame}
我如何确保第一张幻灯片考虑到图表中,以便定义不是垂直居中。
谢谢。
答案1
编辑:看来最简单的解决方案是[t]
向框架添加选项:
\documentclass{beamer}
\begin{document}
\begin{frame}[t]{Convex polygon \& concave polygon}
\begin{definition}
A \textbf{convex} polygon has all its diagonals inside the polygon. \\
A \textbf{concave} polygon has at least one diagonal outside the polygon.
\end{definition}
\bigskip
\centering
\only<2>{\includegraphics[width=0.5\textwidth]{example-image-a}}
\only<3>{\includegraphics[width=0.7\textwidth]{example-image-b}}
\end{frame}
\end{document}