I'm trying to show images step by step at the same location. This is my code:
\documentclass[xcolor=dvipsnames]{beamer}
\begin{document}
\section{Approach}
\begin{frame}{Approaches}
\only<1->{
Hello, world.
}
\only<2>{
\begin{figure}[ht]
\includegraphics[width=5cm]{pic/intro2.pdf}
\end{figure}
}
\only<3>{
\begin{figure}[ht]
\includegraphics[width=5cm]{pic/intro3.pdf}
\end{figure}
}
\end{frame}
\end{document}
The issue is that the texts (Hello, world) varies in its location for each slide. How can I fix the location?
When used with \visible command, the texts are located in the same locations, but this is not what I expect as I want to have the diagrams at the same location also.
The compiled pdf can be downloaded at: https://dl.dropboxusercontent.com/u/10773282/2014/tex.pdf
\begin{frame}[t] \frametitle{Approaches} \vspace*{1cm}
and then your code with\only...
-- this should work. The[t]
stands for top -- the frame won't be centered but rather top-aligned, therefore the presence or the size of the figures won't matter.\vspace*{1cm}
is necessary only if you want to somehow center the thing.animate
package.