13

I have a few very simple beamer slides, which are built up this way:

A short introducory text

A picture, which is almost the same in all slides

Unfortunately, the introducory text is sometimes one line, sometimes two lines and sometimes three. Therefore the picture gets always a little bit shifted in its vertical position. Since this is a presentation, I would it like to have it fixed on a certain position, so that it doesn't change when loading the new slide.

11

You could use the overprint environment so that the same space is reserved on all slides.

\begin{frame}
\frametitle<1>{Title for slide 1}
\frametitle<2>{Title for slide 2}
\frametitle<3>{Title for slide 3}

\begin{overprint}
  \onslide<1> introductory text for first slide
  \onslide<2> introductory text for second slide
  \onslide<3> introductory text for third slide
              \\can also be longer
\end{overprint}

\begin{overprint}
  \onslide<1>\centerline{\includegraphics[width=<length>]{filename1}}%
  \onslide<2>\centerline{\includegraphics[width=<length>]{filename2}}%
  \onslide<3>\centerline{\includegraphics[width=<length>]{filename3}}%
\end{overprint}

\end{frame}

Another simple idea is to add a \vfill between text and graphic to push both apart. Then the graphic will always be at the bottom. A third alternative is to use the textpos package to place the graphic using absolute coordinates.

  • This is golden, though for me the issue was for the longest time that I didn't pay attention to the % at the end of the lines. Adding those to the end of my \only{\includegraphics{filename}} solved my problems :) – tor Jun 17 '16 at 11:14
  • For those who would like to replace the includegraphics with animations: place a single \begin{animateinline} before \onslide<1> (instead of using 3 \begin{animateinline}). – anderstood May 2 '17 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.