我正在为Latex Beamer演示文稿而苦恼。
我想要的是:
在所附示例中,我有一个包含两列的框架。在左列中添加了一个项目列表,在右列中显示了图片。当我敲一个键时,我想显示第二张相同大小的图片,它应该替换第一张图片而不改变位置。如果第一张和第二张图片相同(如示例中所示),则看不到任何更改。
我得到的是:
[第二张图片,与本示例中的第一张图片相同,并且左栏中的文本也移动了,尽管据我所知它不应该受到更改的影响,因为它在另一栏中。
任何人都可以帮助我理解和解决此问题吗?
示例:
\documentclass{beamer}
\usetheme{CambridgeUS}
\begin{document}
\begin{frame}
\frametitle{Example}
\begin{columns}
\column[c]{.5\textwidth}
\begin{itemize}
\item This is an interesting fact
\item this one is even more interesting
\end{itemize}
\column[c]{.5\textwidth}
\only<1>{\includegraphics[width=\textwidth]{example-image-a}}
\only<2>{\includegraphics[width=\textwidth]{example-image-a}}
\end{columns}
\end{frame}
\end{document}
\documentclass{beamer}
\usetheme{CambridgeUS}
\begin{document}
\begin{frame}
\frametitle{Example}
\begin{columns}
\begin{column}[c]{.5\textwidth}
\begin{itemize}
\item This is an interesting fact
\item this one is even more interesting
\end{itemize}
\end{column}
\begin{column}[c]{.5\textwidth}
\only<1>{\includegraphics[width=\textwidth]{example-image-a}}%
\only<2>{\includegraphics[width=\textwidth]{example-image-a}}%
\end{column}
\end{columns}
\end{frame}
\end{document}