# Is there a way to put two pspicture's side by side?

I am making slides using Beamer, and I am trying to have to \pspictures side by side. However, no matter what I do they end up one under the other, even if I use minipage. What is the right way to do this?

-

Are you sure that they are small enough to fit next to each other? If not, you might need to resize them.

-

It turns out I forgot one crucial detail: the paragraph break between the minipages.

-
That's strange: you don't need \hspace between minipages, however you have to make sure there is no paragraph break (empty line) between them. –  Aniko Dec 12 '10 at 21:05
You are right, that was it! –  Dima Dec 12 '10 at 22:35
@ Dima Would you put the code which you used to put these two pspicture beside each other? because I do it through their coordinate and want to know how you do it ? tnx –  Negin Nov 17 '11 at 19:49

Make two columns using \begin{columns} and \begin{column}.

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage{bera}
\usepackage{pstricks}

\begin{document}
\begin{frame}{\textbackslash pspicture side by side}
\begin{columns}
\begin{column}{0.45\textwidth}
\centering%
\pspicture[showgrid](4,4)
\endpspicture
\end{column}
\begin{column}{0.45\textwidth}
\centering%
\pspicture[showgrid](4,4)
\endpspicture
\end{column}
\end{columns}
\end{frame}
\end{document}
-
I tried it with book document class , but I encountered the error that the column environment is unknown , should I add any further package ? –  Negin Feb 5 '12 at 20:21
@Negin: column is defined in beamer class (not in a package). –  Please don't touch Feb 6 '12 at 11:18