I have successive slides where one column is text and the other column is just an image. The image stays the same, so I simply kept the exact same code in a new frame. However, at my surprise, when I vary the text of the left column, the vertical alignment of the picture in the right column changes. I would like the picture to stay still from a frame to another.
Here is a MWE which should make it clearer:
\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}
\begin{colummns}[T]
? – user121799 Dec 9 '18 at 4:39.5\textwidth
besides each other, this leaves no room for the intercolumn space. Either make them a bit smaller (e.g..48\textwidth
) or use\begin{columns}[onlytextwidth]
– samcarter_is_at_topanswers.xyz Dec 9 '18 at 12:09\centering
in your figure, figures are centred by default in beamer – samcarter_is_at_topanswers.xyz Dec 9 '18 at 12:10