当(显然)打印表格的最后一行时,会出现奇怪的脚注中断。我从 tikz 中知道这种脚注中断,只需在“\end{frame}”之前放置一个“\onslide <1->”。但是,这对表格中的脚注中断不起作用。有人有解决方案吗?
\documentclass[9pt]{beamer}
\usetheme{Warsaw}
\usepackage[british]{babel}
\usepackage{tikz}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{frame}[t]{Title}
\pause
\begin{table}[H]
\footnotesize
\renewcommand{\arraystretch}{2}
\begin{tabular*}{\textwidth}{l}
\multicolumn{1}{c}{Text line 1} \tabularnewline \midrule
\onslide<3->
Text line 1 \tabularnewline
\onslide<5->
Text line 2 \tabularnewline
\onslide<7->
Text line 3 \tabularnewline
\onslide<9->
Text line 4 \tabularnewline
\end{tabular*}
\end{table}
\centering
\begin{tikzpicture}
\onslide<1-3>
\node{\includegraphics[width=0.5\linewidth]{example-image-a}};
\onslide<4-5>
\node{\includegraphics[width=0.5\linewidth]{example-image-b}};
\onslide<6-7>
\node{\includegraphics[width=0.5\linewidth]{example-image-c}};
\onslide<8-9>
\node{\includegraphics[width=0.5\linewidth]{example-image-b}};
\onslide<10-10>
\node{\includegraphics[width=0.5\linewidth]{example-image-a}};
\end{tikzpicture}
\onslide<1->
\end{frame}
\end{document}
答案1
找到了一个可行的解决方案:在 tikzpicture 结束前和表格环境结束前放置一个“\onslide<1->”解决了这个问题。不再有 footlinebreaks!
\documentclass[9pt]{beamer}
\usetheme{Warsaw}
\usepackage[british]{babel}
\usepackage{tikz}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{frame}[t]{Title}
\pause
\begin{table}[H]
\footnotesize
\renewcommand{\arraystretch}{2}
\begin{tabular*}{\textwidth}{l}
\multicolumn{1}{c}{Text line 1} \tabularnewline \midrule
\onslide<3->
Text line 1 \tabularnewline
\onslide<5->
Text line 2 \tabularnewline
\onslide<7->
Text line 3 \tabularnewline
\onslide<9->
Text line 4 \tabularnewline
\onslide<1->
\end{tabular*}
\end{table}
\centering
\begin{tikzpicture}
\onslide<1-3>
\node{\includegraphics[width=0.5\linewidth]{example-image-a}};
\onslide<4-5>
\node{\includegraphics[width=0.5\linewidth]{example-image-b}};
\onslide<6-7>
\node{\includegraphics[width=0.5\linewidth]{example-image-c}};
\onslide<8-9>
\node{\includegraphics[width=0.5\linewidth]{example-image-b}};
\onslide<10-10>
\node{\includegraphics[width=0.5\linewidth]{example-image-a}};
\onslide<1->
\end{tikzpicture}
\end{frame}
\end{document}