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 to reveal gradually several items in the same frame in a certain order. In the following MWE I want to reveal item 1 (make item 1 appear first), then reveal table 1, then reveal item 2, then reveal table 2.

How can I do that?

\documentclass{beamer}

\begin{document}
    \begin{frame}
        \begin{itemize}
            \item 
            item 1

            \item 
            item 2
        \end{itemize}

        \vspace{1.5\baselineskip}

        \begin{minipage}{0.4\textwidth}
            \begin{tabular}{c|c}
                table1 & trial \\
                \hline
                \hline
                1 & 2 \\
                3 & 4
            \end{tabular}
        \end{minipage} \qquad
        \begin{minipage}{0.4\textwidth}
            \begin{tabular}{c|c}
                table2 & trial \\
                \hline
                \hline
                5 & 6 \\
                7 & 8
            \end{tabular}
        \end{minipage}  

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

3 Answers 3

up vote 5 down vote accepted

You can use the \visible<overlay>{<stuff>} specification:

enter image description here

\documentclass{beamer}% http://ctan.org/pkg/beamer
\begin{document}
\begin{frame}
  \begin{itemize}
    \item \visible<1->{item 1}
    \item \visible<3->{item 2}
  \end{itemize}

  \vspace{1.5\baselineskip}

  \visible<2->{\begin{minipage}{0.4\textwidth}
    \begin{tabular}{c|c}
      table1 & trial \\
      \hline \hline
      1 & 2 \\
      3 & 4
    \end{tabular}
  \end{minipage}} \qquad
  \visible<4->{\begin{minipage}{0.4\textwidth}
    \begin{tabular}{c|c}
      table2 & trial \\
      \hline \hline
      5 & 6 \\
      7 & 8
    \end{tabular}
  \end{minipage}}
\end{frame}
\end{document}

The overlay <2-> means that the item will be visible from slide 2 onward, for example.

share|improve this answer

You may do this as follows.

\documentclass{beamer}

\begin{document}
\begin{frame}
        \begin{itemize}
            \item<1-> item 1
            \item<3-> item 2
        \end{itemize}

        \vspace{1.5\baselineskip}

        \onslide<2->{\begin{minipage}{0.4\textwidth}
            \begin{tabular}{c|c}
                table1 & trial \\
                \hline
                \hline
                1 & 2 \\
                3 & 4
            \end{tabular}
        \end{minipage} \qquad}
        \onslide<4>{\begin{minipage}{0.4\textwidth}
            \begin{tabular}{c|c}
                table2 & trial \\
                \hline
                \hline
                5 & 6 \\
                7 & 8
            \end{tabular}
        \end{minipage}}
\end{frame}
\end{document}
share|improve this answer

Instead of using minipage I recommend the using of columns/column. It allows the beamer specific settings.

\documentclass{beamer}

\begin{document}
\begin{frame}
 \begin{itemize}
  \item<1-> item 1
  \item<2-> item 2
 \end{itemize}

 \vspace{1.5\baselineskip}

  \begin{columns}[t]
  \begin{column}{.4\linewidth}<1->
    \begin{tabular}{c|c}
       table1 & trial \\\hline
       1 & 2 \\
       3 & 4
   \end{tabular}
  \end{column}
  \quad
  \begin{column}{0.4\textwidth}<2->
    \begin{tabular}{c|c}
       table2 & trial \\\hline
       5 & 6 \\
       7 & 8
   \end{tabular}
  \end{column}
  \end{columns}
\end{frame}
\end{document}
share|improve this answer
    
Good idea. I adopted the columns –  Elec Jan 21 '12 at 21:38

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.