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 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?

share|improve this question

3 Answers 3

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

share|improve this answer

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

alt text

\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}
share|improve this answer
    
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
1  
@Negin: column is defined in beamer class (not in a package). –  Oh my ghost Feb 6 '12 at 11:18
up vote 1 down vote accepted

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

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

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.