
在此 MWE 中,幻燈片 1 和 3 上出現了一些點。當影片消失時,他們會回到原來的位置。
\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
您可以簡單地使用 example代替 來為所有投影片上的物件保留必要的空間\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}
[用矩形替換視頻,因為沒有你的文件我無法測試]