pgf matrix in a frame in beamer

View: New views
1 Messages — Rating Filter:   Alert me  

pgf matrix in a frame in beamer

by shreyasbabu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all
\begin{frame}[fragile]
  \begin{tikzpicture}[font=\scriptsize]
    \matrix [matrix of nodes,nodes={text width=20mm}]
      {
         a & b \\
      }
   \end{tikzpicture}
\end{frame}

I tried to use this pgf matrix in a beamer frame.
But I get the following error when I specify the `text width' option.
Please help.

! Use of \@iminipage doesn't match its definition.