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'm putting together a Beamer presentation and want a theorem to appear on the left side of the slide and a picture on the right side. I tried to accomplish this with:

\begin{frame}
\begin{tabular}{lc}
\begin{theorem}theorem here\end{theorem}&picture here
\end{tabular}
\end{frame}

The result is a bunch of "missing endgroup" errors. Can I accomplish what I want with tabular or some other environment?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

You could place the theorem and the picture in separate, side-by=side minipage environments:

enter image description here

\RequirePackage[demo]{graphicx} % just for this example
\documentclass{beamer}
\begin{document}
\begin{frame}{A theorem and a picture, side-by-side}
\begin{minipage}{0.48\textwidth}
\begin{theorem}theorem here\end{theorem}
\end{minipage}
\hspace*{\fill} % spacing between the minipages
\begin{minipage}{0.48\textwidth}
\includegraphics[width=\linewidth]{demo.pdf}
\end{minipage}
\end{frame}
\end{document}
share|improve this answer
    
When I use overprint within the minipages, the resulting output has the minipages stacked vertically for some reason. Wrapping the entire business in a tabular (a minipage in each cell) seems to keep the minipages side by side. –  Austin Mohr Mar 9 at 20:21
    
@AustinMohr - Please see the augmented answer for a demo of how the two minipages can co-exist side-by-side. How are you setting up the picture? –  Mico Mar 9 at 20:40

If you'd like to stick with a tabular, you can do so by using a paragraphy style column:

  \begin{tabular}{p{.5\textwidth}c}

Here's a complete MWE.

% arara: pdflatex
\documentclass{beamer}

\begin{document}
\begin{frame}
  \begin{tabular}{p{.5\textwidth}c}
    \begin{theorem}theorem here
    \end{theorem} & picture here
    \end{tabular}
  \end{frame}
\end{document}
share|improve this answer
1  
You may want to add @{} to the left of the first column and to the right of the second column to eliminate the unneeded (and probably undesirable) intercolumn whitespaces. –  Mico Mar 9 at 20:18

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.