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 three items in a slide and there is one block where I would like to show the definition of each items. On each click or button press I want to change the item name and the corresponding definition. I was able to do this for the graphics, but I was not able to achieve this effect for the text.

The sample tex document is as follows:

\documentclass[mathserif]{beamer} 

% Setup appearance:

\usetheme{CambridgeUS}
\setbeamertemplate{items}[ball]
\usefonttheme[onlylarge]{structurebold}
\usecolortheme[RGB={205,173,0}]{structure} 
\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}
\useoutertheme{infolines} 

%Pacakges
\usepackage{xcolor}
\usepackage{graphics}

\usepackage{amsmath}
\usepackage{xcolor}

\mode<presentation>{}

\begin{document}
    \begin{frame}{Motivation}
    \begin{itemize}
        \item<1-> Travel time 
        \item<2-> Residence time
        \item<3-> Biology
    \end{itemize}

    \begin{block}{Definition}
        <1> {Travel time is the time required by the particle to move from one point to another point.}
        <2> {Residence time is the time required for the particle to get out of the system.}
        <3> {Biology is the study of living things.}
    \end{block} 

\end{frame}
\end{document}
share|improve this question
add comment

2 Answers

up vote 10 down vote accepted

You can use \only<overlay specification>:

\documentclass{beamer}
\usetheme{CambridgeUS}
\setbeamertemplate{items}[ball]
\usefonttheme[onlylarge]{structurebold}
\usecolortheme[RGB={205,173,0}]{structure} 
\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}
\useoutertheme{infolines} 

%Pacakges
\usepackage{xcolor}
\usepackage{graphics}

\usepackage{amsmath}
\usepackage{xcolor}

\mode<presentation>{}

\begin{document}
    \begin{frame}{Motivation}
    \begin{itemize}[<+->]
        \item Travel time 
        \item Residence time
        \item Biology
    \end{itemize}

    \begin{block}{Definition}
        \only<1>{Travel time is the time required by the particle to move from one point to another point.}
        \only<2>{Residence time is the time required for the particle to get out of the system.}
        \only<3>{Biology is the study of living things.}
    \end{block} 

\end{frame}
\end{document}

enter image description here

Change to \only<1->, \only<2->,... if you want the description to appear cummulatively.

share|improve this answer
    
Thank you so much. It is exactly what I want. –  Jdbaba May 30 '13 at 19:51
add comment

You could just wrap the entries within your Definition block in an itemize the same way you did for the regular itemize entries frame. That would "bullet" the definition list, but might be what you're after:

enter image description here

\documentclass[mathserif]{beamer} % http://ctan.org/pkg/beamer

% Setup appearance:

\usetheme{CambridgeUS}
\setbeamertemplate{items}[ball]
\usefonttheme[onlylarge]{structurebold}
\usecolortheme[RGB={205,173,0}]{structure} 
\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}
\useoutertheme{infolines} 

\mode<presentation>{}

\begin{document}
\begin{frame}{Motivation}
  \begin{itemize}
    \item<1-> Travel time 
    \item<2-> Residence time
    \item<3-> Biology
  \end{itemize}

  \begin{block}{Definition}
    \begin{itemize}
      \item<1-> Travel time is the time required by the particle to move from one point to another point.
      \item<2-> Residence time is the time required for the particle to get out of the system.
      \item<3-> Biology is the study of living things.
    \end{itemize}
  \end{block} 
\end{frame}
\end{document}

The above avoids a vertical skipping across frames due to different text lengths in your Definition block.

share|improve this answer
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.