我正在使用Beamer类制作演示文稿。 我想在一个帧中逐一显示简单的图像列表,就像使用itemize<+->时一样。
我可以逐个显示图像,但每次插入新图像时,图像都会移动位置。 我该如何解决这个问题 - 在我的视角中,必须有一个简单的解决方案,而不需要指定图像的绝对位置。
我正在使用Beamer类制作演示文稿。 我想在一个帧中逐一显示简单的图像列表,就像使用itemize<+->时一样。
我可以逐个显示图像,但每次插入新图像时,图像都会移动位置。 我该如何解决这个问题 - 在我的视角中,必须有一个简单的解决方案,而不需要指定图像的绝对位置。
您可以简单地像这样指定一系列图像:
\includegraphics<1>{A}
\includegraphics<2>{B}
\includegraphics<3>{C}
这将生成三个幻灯片,其中图像A到C在完全相同的位置。
编辑:
\visible<2->{
\textbf{Some text}
\begin{figure}[ht]
\includegraphics[width=5cm]{./path/to/image}
\end{figure}
}
visible
优于onslide
,因为onslide
尝试使图像透明化,但它却无法做到! - Sibbs Gambling\includegraphics<1>{A}
方法似乎并非如此。值得在您的帖子中强调吗? - Matifou\includegraphics<1>{A}%
\includegraphics<2>{B}%
\includegraphics<3>{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}
这是我用来解决问题的示例代码。
\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}