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.

I have an equation and I would like to uncover part of it at a time. Take y = 2x + 3.

\begin{equation*}
y = 2x + 3
\end{equation*}

I would like to uncover the 3

\begin{equation*}
y = 2x + \uncover<2->{3}
\end{equation*}

That syntax for uncover does not seem to do anything.

share|improve this question
    
Have you tried using \pause instead of \uncover? Or does that not fulfill your purpose? –  Rebekah Feb 9 '12 at 22:26
    
I always have this problem! The \onslide solution doesn't always work with align (in amsmath) either. Sometimes I simply can't get incremental equations at all, for no apparent reason. Would be nice to hear an analysis of what's going on. –  Ryan Reich Feb 10 '12 at 0:09
    
Works fine with me (Win 7,TeXnicCenter 2,MikTeX 2.9). \documentclass{beamer}\usepackage{amsmath}\begin{document}\frame{\[y = 2x + \uncover<2->{3}\]}\end{document}. Can you include the preamble of your document together with your TeX system (computer, TeX distribution etc.). And a side issue why not using \[ y = 2x + \uncover<2->{3} \] ? –  percusse Feb 10 '12 at 0:34
add comment

1 Answer

up vote 8 down vote accepted

A minimal example:

\documentclass{beamer} %making it a slideshow
\author{Kaare Mikkelsen}
\begin{document}
\frame{
\frametitle{Colors} 
\begin{equation*} y = 2x + \onslide<2->{3} \end{equation*} %the "3" will be shown one mouse-click later than "y=2x"
}
\end{document}

The result:

enter image description here

share|improve this answer
    
I think you should remove the \usepackage{graphicx} command? –  Marc van Dongen Feb 9 '12 at 23:26
    
I have edited it accordingly :) –  Kaare Feb 10 '12 at 12:34
1  
@Kaare, Hi, what if I want to uncover 2, which is not at the end of the equation? –  LWZ Jul 16 '13 at 14:53
add comment

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.