Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to divide frame into columns in Beamer

📅 2010-May-05 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ beamer, column, figure ⬩ 📚 Archive

 

In a Beamer frame, you might need to present 2 or more figures or a figure and textual content beside each other. The columns environment of Beamer can be used to achieve this by subdividing the frame into columns.

To do this enclose all the frame content within a columns environment:

\begin{frame}{Fixing an Optical Mouse}
\begin{columns}
% Frame content here
\end{columns}
\end{frame}

To create a column of content inside this environment of say, 0.6 width of the total frame width use:

\column{0.6\textwidth}
% Content of this column here

The content of this column follows after this. Do this for each column you want. The widths of all the columns should add up to 1.0.

The frame shown above has 2 columns, of width 0.6 and 0.4 respectively, holding a figure and some text. It was generated from this snippet of LaTeX code:

\begin{frame}{Fixing an Optical Mouse}
\begin{columns}
    \column{0.6\textwidth}
    \includegraphics[scale=0.3]{mouse.png}

    \column{0.4\textwidth}
    \begin{itemize}
    \item{Open mouse.}
    \item{Fix internals of mouse.}
    \item{Close mouse.}
    \end{itemize}
\end{columns}
\end{frame}

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧