Beamer:如何讓腳註規則稍後出現(暫停)

Beamer:如何讓腳註規則稍後出現(暫停)

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}

在此輸入影像描述

相關內容