Beamer: 脚注ルールを後で表示する方法 (一時停止)

Beamer: 脚注ルールを後で表示する方法 (一時停止)

私は機能beamerで脚注を使用していますpause。デフォルトでは、スライドが作成されるとすぐに脚注が表示されます。<m-n>機能を使用すると、脚注が適切なタイミングで表示されるようになります (つまり、脚注を付ける文が表示されたとき)。

しかし脚注ルールスライドが作成されるとすぐに表示されます。最初の脚注が表示されるときに正確に表示されるようにしたいです。

これが MWE です。脚注ルールが最初のスライドに表示されていますが、スライド 3 に表示したい点に注意してください。自動ソリューションが理想的ですが、必要に応じて手動で実行することもできます。

\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}

ここに画像の説明を入力してください

関連情報