Beamer 幻灯片中的垂直摆动图形

Beamer 幻灯片中的垂直摆动图形

我有连续的幻灯片,其中一列是文本,另一列只是图像。图像保持不变,所以我只是在新框架中保留了完全相同的代码。然而,令我惊讶的是,当我改变左列的文本时,右列图片的垂直对齐方式会发生变化。我希望图片在从一个框架到另一个框架时保持静止。

下面是一个 MWE,它应该说得更清楚:

\documentclass{beamer}

\begin{document}

\begin{frame}
\begin{columns}

\column{0.5\textwidth}

Sample text

\column{0.5\textwidth}
\begin{figure}

\centering
\def\svgwidth{\textwidth}
\input{fig.pdf_tex}
\caption{Wobbly figure}

\end{figure}

\end{columns}
\end{frame}

\begin{frame}
\begin{columns}

\column{0.5\textwidth}

A much longer sample text which messes up with the vertical alignment of the image in the other column. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

\column{0.5\textwidth}
\begin{figure}

\centering
\def\svgwidth{\textwidth}
\input{fig.pdf_tex}
\caption{Wobbly figure}

\end{figure}

\end{columns}
\end{frame}

\end{document}

在此处输入图片描述 在此处输入图片描述

答案1

是的。当然,必须进行常规更正,而且我没有您的数据。

\documentclass{beamer}

\begin{document}

\begin{frame}[t]
\begin{columns}[T]

\begin{column}{0.485\textwidth}

Sample text

\end{column}
\begin{column}{0.485\textwidth}
\vspace*{2cm}
\begin{figure}

\centering
\includegraphics[width=0.9\textwidth]{example-image-duck}
\caption{Wobbly figure}

\end{figure}
\end{column}
\end{columns}
\end{frame}

\begin{frame}[t]
\begin{columns}[T]

\begin{column}{0.485\textwidth}

A much longer sample text which messes up with the vertical alignment of the image in the other column. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\end{column}
\begin{column}{0.485\textwidth}
\vspace*{2cm}
\begin{figure}

\centering
\includegraphics[width=0.9\textwidth]{example-image-duck}
\caption{Wobbly figure}
\end{figure}
\end{column}
\end{columns}
\end{frame}
\end{document}

在此处输入图片描述

相关内容