我正在尝试使用 Beamer 班级。我想显示一个简单的图像列表,一一一一帧,就像您使用时一样 逐项<+ - >.

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

有帮助吗?

解决方案 2

我通过使用Visble-Command找到了解决问题的解决方案。

编辑:

\visible<2->{
   \textbf{Some text}
   \begin{figure}[ht]
       \includegraphics[width=5cm]{./path/to/image}
    \end{figure}
 }

其他提示

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

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

这将在与C c完全相同的位置的图像A到C的情况下产生三个幻灯片。

这就是我所做的:

\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}
\includegraphics<1>{A}%
\includegraphics<2>{B}%
\includegraphics<3>{C}%

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

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

\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}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top