Beamerクラスを使用してプレゼンテーションを作成しようとしています。itemize <+->を使用する場合と同じように、画像の簡単なリストを1つのフレームに1つずつ表示したいと思います。
画像を1枚ずつ表示しても問題ありませんが、新しい画像を挿入するたびに画像がシフトします。これを解決するにはどうすればよいですか-私の観点からは、画像の絶対的な配置を指定せずに、簡単な解決策が必要です。
次のように一連の画像を指定するだけです。
\includegraphics<1>{A}
\includegraphics<2>{B}
\includegraphics<3>{C}
これにより、画像 A ~ C がまったく同じ位置にある 3 つのスライドが生成されます。
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}%
% は重要です。これにより、すべての画像が固定されます。
これは私がしたことです:
\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}