Tell me more ×
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.

I want this in the same frame, not a different frame. Here is an example of what I'd like:

\documentclass[mathserif]{beamer}
\usetheme{Copenhagen}
\usepackage{color,xcolor,ucs}
\usepackage{beamerthemesplit}
\usepackage{graphicx}
\usepackage{amsmath,amsfonts,amssymb,setspace,mathtools}
\begin{document}
\section{Introduction}
\frame{\frametitle{NPDE}
\begin{itemize}
    \pause
  \item item 1 here
    \pause
  \item item 2 here
    \pause
  \begin{equation*}
          \frac{\partial u}{\partial t}= {\color{red}u(n,t)}u(n+1,t) -u(n,t)u(n-1,t)
  \end{equation*}
  %then I want this on the next click:
  \pause
    \begin{equation}
        \notag
        \frac{\partial u}{\partial t}=u(n,t){\color{red}u(n+1,t)}-u(n,t)u(n-1,t)
  \end{equation}
\end{itemize}
}
\end{document}
share|improve this question
But if you want the second part "on the next click", it will be on a different slide; perhaps you meant "I want this in the same frame, not a different frame"? – Gonzalo Medina Jul 22 '12 at 17:36

1 Answer

up vote 2 down vote accepted

You can use the \only overlay specification:

\documentclass[mathserif]{beamer}
\usetheme{Copenhagen}
\usepackage{color,xcolor,ucs}
\usepackage{beamerthemesplit}
\usepackage{graphicx}
\usepackage{amsmath,amsfonts,amssymb,setspace,mathtools}
\begin{document}
\section{Introduction}
\frame{\frametitle{NPDE}
\begin{itemize}
    \pause
  \item item 1 here
    \pause
  \item item 2 here
    \pause
  \begin{equation*}
          \frac{\partial u}{\partial t}= \only<4>{\textcolor{red}{u(n,t)}u(n+1,t)}\only<5>{u(n,t)\textcolor{red}{u(n+1,t)}} -u(n,t)u(n-1,t)
  \end{equation*}
\end{itemize}
}
\end{document}

And here are the fourth and fifth slides showing the relevant equation:

enter image description here

share|improve this answer
YES!! thank you Gonzalo!! and yes I meant the same frame (I'm still new to latex, but thank you!) – norma Jul 22 '12 at 17:46

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.