Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Recently, I asked this question, about how to let bullets appear in a frame in a Latex Beamer document.

How would I do this with pictures? Say that I want a slide which contains one graph in the upper half and after clicking another graph appears in the lower half. The answer to my previous question does not help in this case, because there is no itemize/enumerate environment. Any help is appreciated!

share|improve this question
1  
With Beamer we have an overlay specification to \includegraphics that works like the \item on such environment (itemize, enumerate, etc.). Just use \includegraphics<1>[options]{graphicfilename1}, \includegraphics<2->[options]{graphicfilename2} etc. like the answers to your previous question. –  jotagah May 18 at 15:11

1 Answer 1

up vote 5 down vote accepted

Beamer implements an overlay specification to allow the usage of figures as overlays. The \includegraphics from graphicx package (auto loaded by Beamer) is expanded to

\includegraphics<number>[options]{graphicfilename}

It works like the \item<> on itemize environment, for instance. A basic example:

\documentclass{beamer}
\usetheme{Darmstadt}
\begin{document}
\begin{frame}{Only one frame}
    \begin{figure}
        \includegraphics<1>[width=.8\textwidth]{example-image-a}
        \includegraphics<2>[width=.5\textwidth]{example-image-b}
    \end{figure}
\end{frame}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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