未發現的腳註在投影機演示中出現得太早

未發現的腳註在投影機演示中出現得太早

在下面的程式碼中,我使用在第二張幻燈片上\uncover<2->{\footnotetext[2]{footnote 2}}揭開footnote 2,以及text 2.

但是,footnote 2出現在第一張投影片上(也在第二張投影片上)。

如何修復它? (順便說一句,我想保留\uncover語義;\only<2->{\footnotetext[2]{footnote 2}}這不是我想要的。)

投影機腳註覆蓋

\documentclass[beamer]{standalone}
\begin{document}
\begin{frame}{Footnote Overlay Tested}
  text 1~\footnotemark[1]

  \uncover<2->{text 2~\footnotemark[2]}

  \footnotetext[1]{footnote 1}
  \uncover<2->{\footnotetext[2]{footnote 2}}
\end{frame}
\end{document}

答案1

編輯:一個更簡單的解決方案是不用擔心,讓投影機完成這項工作:

\documentclass[beamer]{standalone}
\begin{document}
\begin{frame}{Footnote Overlay Tested}
  text 1\footnote{footnote 1}

  \uncover<2->{text 2~\footnote<2->{footnote 2}}

\end{frame}
\end{document}

原始答案:有點hacky,但確實有效:

\documentclass{beamer}

\begin{document}
\begin{frame}{Footnote Overlay Tested}
  text 1~\footnotemark[1]

  \uncover<2->{text 2~\footnotemark[2]}

  \footnotetext[1]{footnote 1}

  \alt<1>{\let\thefootnote\relax\footnotetext{~}}{\footnotetext[2]{footnote 2}}
\end{frame}
\end{document}

在此輸入影像描述

相關內容