Beamer Presentations: Difference between revisions
No edit summary |
|||
| Line 4: | Line 4: | ||
= Slides with columns = |
= Slides with columns = |
||
In article mode we can usually get two columns by using the twocolumn package or environment. In a slide we need to have more control over the layout. |
|||
A frame (slide) with two columns is obtained by doing |
A frame (slide) with two columns is obtained by doing |
||
| Line 24: | Line 26: | ||
\usepackage{multicol} |
\usepackage{multicol} |
||
\setlength{columnsep}{0pt} %optional |
\setlength{columnsep}{0pt} %white space btwn cols, optional |
||
\setlength{\columnseprule}{0.2mm} %add line btwn cols, optional |
|||
... |
... |
||
\begin{frame} |
\begin{frame} |
||
Revision as of 22:19, 16 December 2009
Beamer is a LaTeX package to make slide presentations 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
In article mode we can usually get two columns by using the twocolumn package or environment. In a slide we need to have more control over the layout.
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} %white space btwn cols, optional
\setlength{\columnseprule}{0.2mm} %add line btwn cols, 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).