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 would like to uncover elements of a slide in beamer, even if these elements are just plain text in the frame environment. I know how to accomplish this in a brute-force way. That is, the following MWE exhibits exactly the behavior I want.

\documentclass{beamer}

\mode<presentation>{\usetheme{default}}


\begin{document}


\begin{frame}

  Some text

  \pause%
  Some more text

  \begin{description}
  \item [First def]<3-> foo
  \item [Second def]<4-> bar
  \end{description}

  \uncover<5->{Some final remarks}

\end{frame}

\end{document}

Clearly, this method is labor intensive and extremely fragile. Adding "[<+->]" as an option to the initial declaration of the frame environment does not affect the display of the text, so that doesn't do it.

I'm looking for a solution that ideally does better on both counts, i.e., is more automated and more robust.

I know that I could handle things simply by putting the text inside an itemize-environment, but doing so indents the text and unbalances the slides visually. In other words, I'm quite committed to the layout.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Maybe a solution using +- (next overlay) and .- (current overlay):

\documentclass{beamer}
\mode<presentation>{\usetheme{default}}
\begin{document}

\begin{frame}
  \uncover<+->{Some text}

  \uncover<+->{Some more text}

  \uncover<.->{with Some more text}

  \begin{description}
  \item [First def]<+-> foo
  \item [Second def]<.-> bar
  \item [Third def]<+-> foobar
  \end{description}

  \uncover<+->{Some final remarks}
\end{frame}

\end{document}
share|improve this answer
    
That's a bit more robust---thanks for that. Is there any way to make it more automatic? –  Bernhard Jun 23 '12 at 9:32
    
@Bernhard What do you mean by "more automatic"? –  Paul Gaborit Jun 23 '12 at 9:56
    
Right now, I need to manually add something like \uncover<+-> to each paragraph of plain text in a frame. It'd be cool to have a declaration to add at the beginning of the frame so that each paragraph is uncovered sequentially, exactly as each \item is uncovered in an itemize environment after giving the [<+->] option, as in \begin{itemize}[<+->] –  Bernhard Jun 24 '12 at 18:24
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.