Beamer Presentations: Difference between revisions

From Micro and Nano Mechanics Group
Jump to navigation Jump to search
Line 30: Line 30:
First column\\
First column\\
First column
First column

\columnbreak %force column break (optional)
\columnbreak %force column break (optional)

Second column\\
Second column\\
Second column
Second column

Revision as of 22:11, 16 December 2009

Beamer is a LaTeX package to make slide presentation similar to those made by PowerPoint but with all the power of LaTeX typesetting, equations, and graphics.

Beamer workflow is similar to that of a LaTeX article, pdflatex -> preview -> edit -> pdflatex.

Slides with columns

A frame (slide) with two columns is obtained by doing

\begin{frame}
\frametitle{Two Column Output}
  \begin{columns}[c]
  \column{1.5in}
    First column \\
    First column \\
  \column{1.5in}
    Second column with a graphics \\
    \framebox{\includegraphics[width=1.5in]{p2005}}
  \end{columns}
\end{frame}

This is the most direct way, although you need to calculate the width of the column and break the columns explicitly (text doesn't flow from one column to the other).

An alternative is to use the multicol package, which allows text to flow and calculates column widths by dividing the available width in equal parts.

\usepackage{multicol}
\setlength{columnsep}{0pt} %optional
...
\begin{frame}
  \begin{multicols}{2}
    First column\\
    First column

    \columnbreak %force column break (optional)

    Second column\\
    Second column
  \end{multicols}
\end{frame}

The drawback is that we loose control over the exact column width (for example if we want different widths).