
この MWE では、スライド 1 と 3 にポイントが表示されます。スライド 2 では、ビデオが表示されると、スライド 1 で生成されたアイテムが少し移動します。ビデオが消えると、元の位置に戻ります。
\documentclass[10pt,aspectratio=169]{beamer}
\usepackage{media9}
\begin{document}
\begin{frame}{Why do the dot points move on slide 2?}
\begin{columns}
\column{0.5\textwidth}
\begin{itemize}
\item Point 1
\item Point 2
\item<3-> Point 3
\end{itemize}
\column{0.5\textwidth}
\only<2>{
\includemedia[
width=0.6\linewidth,
height=0.4\linewidth,
activate=pageopen,
addresource=PLT/sig0700compare_short.MP4,
flashvars={source=PLT/sig0700compare_short.MP4}
]{}{VPlayer.swf}}
\end{columns}
\end{frame}
\end{document}
答え1
通常、スライドのコンテンツは垂直方向に中央揃えされます。大きなオブジェクトを追加する場合はスペースが必要になるため、垂直方向に中央揃えするにはテキストをさらに上方から開始する必要があります。
いくつかの解決策:
\visible
たとえば の代わりにを使用すると、すべてのスライドでオブジェクトに必要なスペースを簡単に確保できます\only
。
\documentclass[10pt,aspectratio=169]{beamer}
\begin{document}
\begin{frame}
\frametitle{Why do the dot points move on slide 2?}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item Point 1
\item Point 2
\item<3-> Point 3
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\visible<2>{
\rule{.6\linewidth}{.4\linewidth}
}
\end{column}
\end{columns}
\end{frame}
\end{document}
- スライドの配置を、 で全体的に上揃えにするか
\documentclass[t]{beamer}
、個々のフレームで上揃えにするかを変更します\begin{frame}[t]
。列の場合は、 で個別に上揃えにする必要があります\begin{columns}[T]
。
\documentclass[10pt,aspectratio=169]{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{Why do the dot points move on slide 2?}
\begin{columns}[T]
\begin{column}{0.5\textwidth}
\begin{itemize}
\item Point 1
\item Point 2
\item<3-> Point 3
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\only<2>{
\rule{.6\linewidth}{.4\linewidth}
}
\end{column}
\end{columns}
\end{frame}
\end{document}
[ファイルがないとテストできないので、ビデオを長方形に置き換えました]