TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want that when the first block is displayed, the second is gray, and vice versa.

\usepackage{graphicx}%pour les includegraphics

\begin{frame}[t]{General formalization of haplotyping.}
\item A \alert{genotype matrix} $G$.
\item The \alert{rows} of the matrix are \alert{taxa / individuals}.
\item The \alert{columns} of the matrix are \alert{SNP sites /
\item A \alert{haplotype matrix} $H$.
\item Pairs of rows in $H$ \alert{explain} the rows of $G$.
\item The haplotypes in $H$ are \alert{biologically plausible}. 

When I use the code above, the two blocks appear together. But, I want the first block is displayed while the second is covered. Then, The first is covered and the second is displayed.

any help?

share|improve this question

migrated from stackoverflow.com Jul 3 '12 at 18:04

This question came from our site for professional and enthusiast programmers.

Do you mean that the first block appears first then when you press enter the second appears? – Joseph Elcid Jul 2 '12 at 19:22
I mean that when the first appear, the second is covered and when I press enter the second appear and the first begin covered – Nounou Biatrice Jul 2 '12 at 19:33
Then I'll ajust the solution I proposed to fit what you want – Joseph Elcid Jul 2 '12 at 19:36
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Jul 3 '12 at 18:09
up vote 3 down vote accepted

You can use \uncover command for this.

\uncover<1>{Text only shown in first slide.}
\uncover<2-3>{Text only shown in second and third slide.}
\uncover<1,3>{Text only shown in first and third slide.}

The difference between appearance for hidden elements (gray or completely hidden) is a configuration option:


etc. See Beamer User Guide, Section 17.6.

Source btw: http://tex.stackexchange.com/questions/53860/can-i-tell-beamer-that-uncover-should-be-invisible-not-merely-grayed-out

share|improve this answer
what I seek is \setbeamercovered{invisible} \setbeamercovered{transparent} Thanks ypnos – Nounou Biatrice Jul 2 '12 at 19:59

Your Answer


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.