57

我正在尝试使用Beamer类进行演示。我想在一帧中一张一张地显示一个简单的图像列表,就像您使用itemize<+->时一样。

我一张一张地显示图像没有问题,但是每次插入新图像时图像都会发生变化。我该如何解决 - 从我的角度来看,必须有一个简单的解决方案,而不指定图像的绝对位置。

4

5 回答 5

53

您可以像这样简单地指定一系列图像:

\includegraphics<1>{A}
\includegraphics<2>{B}
\includegraphics<3>{C}

这将生成三张幻灯片,其中图像 A 到 C 的位置完全相同。

于 2011-01-13T19:00:52.547 回答
51

通过使用 visble-command,我找到了解决问题的方法。

编辑:

\visible<2->{
   \textbf{Some text}
   \begin{figure}[ht]
       \includegraphics[width=5cm]{./path/to/image}
    \end{figure}
 }
于 2011-01-13T20:40:11.917 回答
20
\includegraphics<1>{A}%
\includegraphics<2>{B}%
\includegraphics<3>{C}%

% 很重要。这将保持所有图像固定。

于 2018-08-06T12:58:27.890 回答
13

这就是我所做的:

\begin{frame}{series of images}
\begin{center}
\begin{overprint}

\only<2>{\includegraphics[scale=0.40]{image1.pdf}}
\hspace{-0.17em}\only<3>{\includegraphics[scale=0.40]{image2.pdf}}
\hspace{-0.34em}\only<4>{\includegraphics[scale=0.40]{image3.pdf}}
\hspace{-0.17em}\only<5>{\includegraphics[scale=0.40]{image4.pdf}}

\only<2-5>{\mbox{\structure{Figure:} something}}

\end{overprint}
\end{center}
\end{frame}
于 2012-04-12T09:39:31.017 回答
1

这是我用来解决问题的示例代码。

\begin{frame}{Topic 1}
Topic of the figures
\begin{figure}
\captionsetup[subfloat]{position=top,labelformat=empty}
\only<1>{\subfloat[Fig. 1]{\includegraphics{figure1.jpg}}}
\only<2>{\subfloat[Fig. 2]{\includegraphics{figure2.jpg}}}
\only<3>{\subfloat[Fig. 3]{\includegraphics{figure3.jpg}}}
\end{figure}
\end{frame}
于 2013-09-15T20:46:51.917 回答