Beamer:如何将图像显示为分步图像

aag*_*ard 50 latex image beamer

我正在尝试使用Beamer课程进行演示.我想在一帧中逐个显示一个简单的图像列表,就像使用itemize <+ - >时一样.

我一个接一个地显示图像没有问题,但每次插入新图像时图像都会移动.我如何解决这个问题 - 从我的角度来看,必须有一个简单的解决方案,而不指定图像的绝对位置.

Sva*_*nte 49

您可以简单地指定一系列图像,如下所示:

\includegraphics<1>{A}
\includegraphics<2>{B}
\includegraphics<3>{C}
Run Code Online (Sandbox Code Playgroud)

这将生成三张幻灯片,图像A至C位于完全相同的位置.

  • 我也尝试了一些成功,但不是"弹出",我宁愿从一开始就在框架上分配内容.这会使幻灯片上的其他内容在显示时移动. (4认同)

aag*_*ard 41

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

编辑:

\visible<2->{
   \textbf{Some text}
   \begin{figure}[ht]
       \includegraphics[width=5cm]{./path/to/image}
    \end{figure}
 }
Run Code Online (Sandbox Code Playgroud)

  • 我认为在大多数情况下不需要使用\ begin {figure}。您可以只放置\ includegraphics部分,至少这是我喜欢的。您打算在投影仪幻灯片中给数字编号吗?如果是的话,你比我更讲究:) (3认同)
  • 你可以发布一个代码片段以供将来参考吗? (2认同)

小智 8

这就是我做的:

\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}
Run Code Online (Sandbox Code Playgroud)


小智 8

\includegraphics<1>{A}%
\includegraphics<2>{B}%
\includegraphics<3>{C}%
Run Code Online (Sandbox Code Playgroud)

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

  • 这不应该是对 Svante 答案的评论吗? (2认同)