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 want that when the first block is displayed, the second is gray, and vice versa.

\documentclass{beamer}
\usepackage[frenchb]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{epsfig,pslatex,colortbl}
\usepackage{graphics}
\usepackage{graphicx}%pour les includegraphics
\usepackage{array}
\usepackage{beamerthemesplit} 
\usepackage{multicol}

\usetheme{PaloAlto}
\usecolortheme{orchid}
\begin{document}
\begin{frame}[t]{General formalization of haplotyping.}
\begin{block}{Inputs}
\begin{itemize}
\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 /
    characters}. 
\end{itemize}
\end{block}
\begin{block}{Outputs}
\begin{itemize}
\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}. 
\end{itemize}
\end{block}
\end{frame}
\end{document}

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
    
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
add comment

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

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

1 Answer

up vote 2 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:

\setbeamercovered{invisible}
\setbeamercovered{transparent}

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
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.