我在用
\documentclass{beamer}
\usetheme{Madrid}
\usecolortheme{beaver}
\usepackage{tikz}
我正在使用 tikz 来重叠两张图片:
\begin{frame}{Ghost Imaging}
text
\begin{center}
\begin{tikzpicture}
\node<1> (GIslides) {\includegraphics[width=0.67\linewidth]{image 1}};
\pause
\node<2> (GIslidesPlen) {\includegraphics[width=0.67\linewidth]{image2}};
\end{tikzpicture}
\end{center}
\end{frame}
结果是:
正如您在第一张幻灯片中看到的,底部没有描述,我该如何添加它?
答案1
您同时使用\pause
和指定了两次覆盖,并且(正如评论中指出的那样),一旦您删除了不必要的内容,幻灯片底部的栏就会按预期打印:<num>
\pause
\documentclass{beamer}
\usetheme{Madrid}
\usecolortheme{beaver}
\usepackage{tikz}
\begin{document}
\begin{frame}{Ghost Imaging}
text
\begin{center}
\begin{tikzpicture}
\node<1> (GIslides) {\includegraphics[width=0.67\linewidth]{example-image-a}};
% \pause
\node<2> (GIslidesPlen) {\includegraphics[width=0.67\linewidth]{example-image-b}};
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}