
Следующий код:
\begin{frame}\frametitle{Title}
\begin{itemize}[<+->]
\item 1st
\item 2nd
\end{itemize}
\vfill\pause
Bottom
\end{frame}
создает 4 слайда (вместо 3):
Title
и1st
Title
,1st
,2nd
- Идентично предыдущему
- Все (
Title
,1st
,2nd
,Bottom
)
Если я удалю \vfill\pause
, я получу 2 слайда (вместо 3), и bottom
появится наоба:
Title
,1st
,Bottom
- Все (
Title
,1st
,2nd
,Bottom
)
Как получить 3 слайда?
решение1
Как и Хафид Букхулда, я предлагаю использовать \only
but с аргументом <.(1)>
, который делает трюк. Вы можете думать об этом как о "только сейчас". Я узнал этот трюк от samcarter.
\documentclass{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{Title}
\begin{itemize}[<+->]
\item 1st
\item 2nd
\end{itemize}
\vfill
\only<.(1)> {Bottom}
\end{frame}
\end{document}
С помощью \uncover
вы можете отказаться от выравнивания [t]
, которое я ввел, чтобы избежать скачков.
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Title}
\begin{itemize}[<+->]
\item 1st
\item 2nd
\end{itemize}
\vfill
\uncover<.(1)> {Bottom}
\end{frame}
\end{document}
решение2
\documentclass{beamer}
\begin{document}
\begin{frame}\frametitle{Title}
\begin{itemize}[<+->]
\item 1st
\item 2nd
\end{itemize}
%\pause
\vfill
\only<3> {Bottom}
\end{frame}
\end{document}