# Beamer columns environment in article document

I'd like to use something like beamer's \columns environment in an article-like document. Does anyone know if this is possible and how to do it?

I found this: (beamer blocks in ordinary article-style document) which shows how to use beamer's block environments in an article-like document, but it didn't show how to use the columns.

• The columns environment internally uses minipage. You can use minipages in any document class. – Gonzalo Medina May 7 '13 at 15:19
• Thanks. If you make your comment an answer, I'll pick it. – jlconlin May 7 '13 at 17:13
• This looks like a duplicate of tex.stackexchange.com/q/46115/15925 If you agree, let us know and we will close this question as such. – Andrew Swann May 7 '13 at 17:45
• I guess the question is the same, but the answer given doesn't give the answer I was looking for. The answer in the proposed duplicate is for columns that flow from one to the next. That's not what I'm looking for and that isn't what the beamer columns environment does. – jlconlin May 7 '13 at 17:58
• @Jeremy I added an answer with a simple example. – Gonzalo Medina May 8 '13 at 0:25

The columns environment internally uses minipage, so you can simply use minipages in your document; a simple example (I added some frames just as visual guidelines). The \Colsep length can be used to control the separation between the minipages:

\documentclass{article}
\usepackage{lipsum}

\newlength\Colsep
\setlength\Colsep{10pt}

\begin{document}

\lipsum[4]

\noindent\begin{minipage}{\textwidth}
\begin{minipage}[c][6cm][c]{\dimexpr0.5\textwidth-0.5\Colsep\relax}
\lipsum[4]
\end{minipage}\hfill
\begin{minipage}[c][6cm][c]{\dimexpr0.5\textwidth-0.5\Colsep\relax}
\lipsum[4]
\end{minipage}%
\end{minipage}

\lipsum[4]

\end{document}

I used a fixed height (6cm) for the inner minipages and center alignment but this, of course, is optional.

• Thanks @GonzaloMedina It worked great for me with code listings too – brice Oct 6 '14 at 19:42