I'm trying to update a figure over several slides. I have four pictures (all the exact same width and height). I want to display the first image on the first slide, the second image on the second slide, and so on.
I've tried \includegraphics<n> for this purpose, but as I progress through the slides, the image shifts a bit to the right on each slide.
Is there a way to make everything stick in one place?
Minimal "working" example:
\documentclass[aspectratio=1610]{beamer}
\usepackage{graphicx}
\begin{document}
\begin{frame}{Title}
\begin{figure}
\centering
\includegraphics<1>[scale=0.7]{first.png}
\includegraphics<2>[scale=0.7]{second.png}
\includegraphics<3>[scale=0.7]{third.png}
\includegraphics<4>[scale=0.7]{fourth.png}
\end{figure}
\end{frame}
\end{document}
%at the end of the lines containing\includegraphics, you're adding spaces there. – Skillmon Sep 13 '23 at 14:46\usepackage{graphicx}, beamer already loads this for you – samcarter_is_at_topanswers.xyz Sep 13 '23 at 14:50