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.

How to set this kind of animation on beamer?

show_me_first show_me_second.

I'm trying to show this sentence as described. The show_me_first is showed first, and on click oon the Down button, it will shows the show_me_second. How to deal with this, please?

Thanks a lot!

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Two possibilities, depending on the intended overlay format:

\documentclass{beamer}

\begin{document}

\begin{frame}
\only<1>{first}\only<2>{second}

\onslide<3>{third} \onslide<4>{fourth}
\end{frame}

\end{document}

enter image description here

You can also use \pause:

\begin{frame}
first\pause second
\end{frame}

You could also take a look at the beamer manual for \alt and \temporal.

Here's an example of several overaly specifications:

\documentclass{beamer}

\begin{document}

\begin{frame}
\begin{itemize}
\item<1-> \only<1>{first}\only<2->{second}
\item<3-4> \onslide<3->{third}\onslide<4>{ fourth}
\end{itemize}
\end{frame}

\end{document}

enter image description here

share|improve this answer
    
But that doesn't work on itemizes. when I try \item \only<1>{first}\only<2>{second} I get errors. –  Djouma May 13 at 21:29
    
@Djouma of course it works. Let me update my answer with a simple example. –  Gonzalo Medina May 13 at 21:32
    
You're right, but I'm just trying to display the second part on click and to do not hide the first. –  Djouma May 13 at 21:34
    
@Djouma Use <1-> instead of <1>. –  Gonzalo Medina May 13 at 21:36
    
@Djouma please see my updated answer showing several options for overlay specifications. –  Gonzalo Medina May 13 at 21:38

Try this:

\begin{frame}
  \only<1-2>{show_me_first}
  \only<2>{show_me_second}
\end{frame}

Best regards, Charlie

share|improve this answer
    
But I'm just trying to display the second part on click and to do not hide the first. –  Djouma May 13 at 21:34
    
Okay, see my updated answer. –  Charlie May 13 at 21:36

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.