3

I wish to represent Sparsity across the screen as in the example given below:enter image description here.

Here, is the frame so far:

\frame{   
\frametitle{What is a word?}

\begin{minipage}[c]{.4\linewidth}
   \hspace{20mm} ``cat''
\end{minipage}\hfill
    \pause
\begin{minipage}[c]{.4\linewidth}
   \hspace{5mm} ``feline''
\end{minipage}

\vspace{5mm}

\begin{minipage}[c]{.4\linewidth}
   \hspace{22mm} 2
\end{minipage}\hfill
    \pause
\begin{minipage}[c]{.4\linewidth}
   \hspace{5mm} 299,999
\end{minipage}

\vspace{5mm}

\begin{minipage}[c]{.4\linewidth}
\hspace{20mm}
     \begin{bmatrix}
       0 \\
       1 \\
       0 \\
       0 \\
       \vdots \\
       0 \\
       0 \\
     \end{bmatrix}
\end{minipage}\hfill
    \pause
\begin{minipage}[c]{.4\linewidth}
  \hspace{6mm} \begin{bmatrix}
       0 \\
       0 \\
       0 \\
       0 \\

       \vdots \\
       1 \\
       0 \\
     \end{bmatrix}
\end{minipage}
}
1
  • A compilable example would be really nice
    – user31729
    Commented Jun 8, 2016 at 3:13

1 Answer 1

2

I think you're making life difficult for yourself with all those minipages and \hspaces. Use one minipage per "column", and make use of \uncover.

\documentclass{beamer}
\usepackage{amsmath}

\begin{document}
\begin{frame}
\frametitle{What is a word?}

\begin{minipage}[c]{.3\linewidth}
\centering

\uncover<1->{``cat''}

\bigskip

\uncover<2->{2}

\uncover<3->{%
\[
\begin{bmatrix}
       0 \\
       1 \\
       0 \\
       0 \\
       \vdots \\
       0 \\
       0 \\
     \end{bmatrix}
\]
}
\end{minipage}
\begin{minipage}{0.3\linewidth}
\centering
\uncover<4->{\rotatebox{45}{\Huge\bfseries Sparsity!}}
\end{minipage}
\begin{minipage}[c]{.3\linewidth}
\centering
\uncover<1->{ ``feline''}

\bigskip

\uncover<2->{299,999}


\uncover<3->{%
\[
\begin{bmatrix}
       0 \\
       0 \\
       0 \\
       0 \\
       \vdots \\
       1 \\
       0 \\
     \end{bmatrix}
\]}
\end{minipage}
\end{frame}
\end{document}

Final slide looks like this:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .