![Beamer:如何讓腳註規則稍後出現(暫停)](https://rvso.com/image/405368/Beamer%EF%BC%9A%E5%A6%82%E4%BD%95%E8%AE%93%E8%85%B3%E8%A8%BB%E8%A6%8F%E5%89%87%E7%A8%8D%E5%BE%8C%E5%87%BA%E7%8F%BE%EF%BC%88%E6%9A%AB%E5%81%9C%EF%BC%89.png)
beamer
我在函數中使用腳註pause
。預設情況下,腳註在建立投影片後立即出現。使用該<m-n>
功能,我能夠使它們在正確的時間出現(即當腳註的句子出現時)。
但是,那註腳規則建立幻燈片後仍然會出現。我希望它恰好在第一個腳註出現時出現。
這是一個 MWE。請注意腳註規則如何出現在第一張投影片中,而我希望它出現在第三張投影片中。
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\pause\item This sentence has no footnote
\pause\item This sentence has the first footnote.\footnote<3->{hi there} The footnote rule should appear now.
\pause\item Here's another footnote\footnote<4->{This is a footnote}
\end{itemize}
\end{frame}
\end{document}
答案1
您可以重新定義\footnoterule
以僅在您指定的投影片上顯示該線。在下面的範例中,我將此部分放在一對\bgroup
-中,以免影響其他投影片上\egroup
的定義。\footnoterule
\documentclass{beamer}
\begin{document}
\bgroup
\let\oldfootnoterule\footnoterule
\def\footnoterule{\only<3->\oldfootnoterule}
\begin{frame}
\begin{itemize}
\pause\item This sentence has no footnote
\pause\item This sentence has the first footnote.\footnote<3->{hi there} The footnote rule should appear now.
\pause\item Here's another footnote\footnote<4->{This is a footnote}
\end{itemize}
\end{frame}
\egroup
\end{document}