68
How I Ruled the SiwiR Seminar with a LaTeX Beamer Presentation The Art of giving a Presentation Max Mustermann University Erlangen-Nuremberg – System Simulation January 1st 2011 Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 1 / 60

Latex Beamer

Embed Size (px)

Citation preview

Page 1: Latex Beamer

How I Ruled the SiwiR Seminar with a LaTeX BeamerPresentation

The Art of giving a Presentation

Max Mustermann

University Erlangen-Nuremberg – System Simulation

January 1st 2011

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 1 / 60

Page 2: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 2 / 60

Page 3: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 3 / 60

Page 4: Latex Beamer

Some LaTeX Background

LATEX

LATEX builds on the TEX type setting system

LATEX provides a high-level language that accesses the power of TEX

Separation of content and visual presentation

LATEX Beamer

Beamer is a LATEX class for creating slides for presentations

Provides all necessary features for presentations

Visual presentation is defined by styles

Offers the output of PDF files, handouts, and articles

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 4 / 60

Page 5: Latex Beamer

Some LaTeX Background

LATEX

LATEX builds on the TEX type setting system

LATEX provides a high-level language that accesses the power of TEX

Separation of content and visual presentation

LATEX Beamer

Beamer is a LATEX class for creating slides for presentations

Provides all necessary features for presentations

Visual presentation is defined by styles

Offers the output of PDF files, handouts, and articles

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 4 / 60

Page 6: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 5 / 60

Page 7: Latex Beamer

The Annarbor Style

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 6 / 60

Page 8: Latex Beamer

The Berkeley Style

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 7 / 60

Page 9: Latex Beamer

The Boadilla Style

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 8 / 60

Page 10: Latex Beamer

The CambridgeUS Style

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 9 / 60

Page 11: Latex Beamer

The Geottingen Style

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 10 / 60

Page 12: Latex Beamer

The Singapore Style

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 11 / 60

Page 13: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 12 / 60

Page 14: Latex Beamer

The Makefile

The Makefile looks very similar to every other Makefile

mytalk: mytalk.pdf

mytalk.pdf: mytalk.texpdflatex mytalk.texpdflatex mytalk.tex

clean:@${RM} *.aux *.log *.nav *.out *.snm *.toc *.vrb *.pdf

.PHONY: clean

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 13 / 60

Page 15: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 14 / 60

Page 16: Latex Beamer

The Document Head

\documentclass[utf8x]{beamer}

\usetheme{Madrid}

\usepackage{graphicx}

\usepackage{subfigure}

\usepackage{listings}

\begin{document}

\author{Max Mustermann}

\institute[LSS Erlangen]

{University Erlangen-Nuremberg -- System Simulation}

\title[LaTeX Beamer Example]

{How I Ruled the SiwiR Seminar with a LaTeX Beamer Presentation}

\subtitle[The Art of giving a Presentation]

{The Art of giving a Presentation}

\date[1/1/2009]{January 1st 2009}

\logo{\includegraphics[scale=0.3]{pics/lss_logo}}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 15 / 60

Page 17: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 16 / 60

Page 18: Latex Beamer

How I Ruled the SiwiR Seminar with a LaTeX BeamerPresentation

The Art of giving a Presentation

Max Mustermann

University Erlangen-Nuremberg – System Simulation

January 1st 2011

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 17 / 60

Page 19: Latex Beamer

The Title Page

The title page is very small. All the information has been set before theactual slide.

\begin{frame}[squeeze]

\titlepage

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 18 / 60

Page 20: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 19 / 60

Page 21: Latex Beamer

The Outline Page

\begin{frame}\frametitle{Outline}

\begin{block}{}

\begin{itemize}

\item Some LaTeX Background

\item LaTeX Beamer

\begin{itemize}

\item Styles

\item The Makefile

\item The Document Head

\item The Title and Outline Pages

\item Markups

\item Figures, Tables, and Columns

\item Spacings

\item Mathematical Formula

\item Sequence Control

\item Source Code in the Presentation

\end{itemize}

\item The Six Rules for a Successful Presentation

\end{itemize}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 20 / 60

Page 22: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 21 / 60

Page 23: Latex Beamer

Markups

Text Markups

This block contains some possible markups:

Bold text

Italic text

Emphasized text

Colored text

Verbatim text

Attention!

Note that for the Verbatim text the frame was declared fragile!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 22 / 60

Page 24: Latex Beamer

Markups

\begin{frame}[fragile]\frametitle{Markups}

\begin{block}{Text Markups}

This block contains some possible markups:

\begin{itemize}

\item {\bf Bold text}

\item {\it Italic text}

\item {\em Emphasised text}

\item \textcolor{red}{Colored }\textcolor{blue}{text}

\item \verb|Verbatim text|

\end{itemize}

\end{block}

\begin{block}{Attention!}

Note that for the \verb|Verbatim text| the frame was declared

fragile!

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 23 / 60

Page 25: Latex Beamer

Markups

Font SizesThis is an example for a really \tiny text.

\scriptsize may be too small for a presentation.

\footnotesize should be the minimum font size.

\small is slightly smaller than the default.

\normalsize is the usual default font size.

\large is obviously pretty large.

\Large is even larger!

If it is still not large enough, use \LARGE

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 24 / 60

Page 26: Latex Beamer

Markups

\begin{frame}[fragile]\frametitle{Markups}

\begin{block}{Font Sizes}

{\tiny This is an example for a really \verb|\tiny| text.}\\

{\scriptsize \verb|\scriptsize| is too small for a presentation.}\\

{\footnotesize \verb|\footnotesize| is the minimum font size.}\\

{\small \verb|\small| is slightly smaller than the default.}\\

{\normalsize \verb|\normalsize| is the usual default font size.}\\

{\large \verb|\large| is obvioulsy pretty large.}\\

{\Large \verb|\Large| is even larger!}\\

{\LARGE If it is still not large enough, use \verb|\LARGE|}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 25 / 60

Page 27: Latex Beamer

Markups

Font Sizes

It is also possible to start a font size environment:

This entire paragraph is contained in a \scriptsize environment.

This paragraph on the other hand is contained in a \large

environment.

And this one is contained in a \tiny environment and nicely demonstrates that this font size is way too small for the audience!!

Also note: too many different font sizes on one slide are distracting!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 26 / 60

Page 28: Latex Beamer

Markups

\begin{frame}[fragile]\frametitle{Markups}

\begin{block}{Font Sizes}

It is also possible to start a font size environment:\\

\begin{scriptsize}

This entire paragraph is contained in a \verb|\scriptsize|

environment.\\

\end{scriptsize}

\begin{large}

This paragraph on the other hand is contained in a

\verb|\large| environement.\\

\end{large}

\begin{tiny}

And this one is contained in a \verb|\tiny| environment

and nicely demonstrates that this font size is way too

small for the audience!!

\end{tiny}

\begin{footnotesize}

Also note: too many different font sizes on one slide

are distracting!

\end{footnotesize}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 27 / 60

Page 29: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 28 / 60

Page 30: Latex Beamer

Figures

Images are included via the figure environment. In order to move theimage to the center of the frame, use a center environment.

Figure: Caption above the figures.

Figure: Caption below the figures.

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 29 / 60

Page 31: Latex Beamer

Figures

\begin{frame}[fragile]\frametitle{The LaTeX Environment}

\begin{block}{Figures}

Images are included via the \verb|figure| environment. In order

to move the image to the center of the frame, use a \verb|center|

environment.

\begin{center}

\begin{figure}

\caption{Caption above the figures.}

\includegraphics[scale=0.2]{pics/pic0}

\caption{Caption below the figures.}

\end{figure}

\end{center}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 30 / 60

Page 32: Latex Beamer

Multiple Figures

In order to arrange two figures next to each other, you can use the\subfigure command. Note the different scaling in contrast to theprevious picture.

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 31 / 60

Page 33: Latex Beamer

Multiple Figures

\begin{frame}[fragile]\frametitle{The LaTeX Environment}

\begin{block}{Multiple Figures}

In order to arrange two figures next to each other, you can

use the \verb|\subfigure| command. Note the different scaling

in contrast to the previous picture.

\begin{center}

\begin{figure}

\subfigure{

\includegraphics[width=.3\textwidth]{pics/pic1}

}

\hspace{1.0cm}

\subfigure{

\includegraphics[width=.3\textwidth]{pics/pic2}

}

\end{figure}

\end{center}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 32 / 60

Page 34: Latex Beamer

Tables

left center right 4cm paragraph $ 2.50

one and two three 1 2 four $ 1.50

For more informations about tables, see

http://www.uni-giessen.de/hrz/tex/cookbook/sixth.html

http://latex.computersci.org//env-tables.3.html

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 33 / 60

Page 35: Latex Beamer

Tables

\begin{frame}\frametitle{Tables}

\begin{block}{}

\begin{tabular}{l|c|r||p{4cm}|r@{.}l}

left & center & right & 4cm paragraph & \$ 2 & 50 \\

\hline

\multicolumn{2}{c|}{one and two} & three 1 \vline{} 2 & four & \$ 1 & 50 \\

\cline{1-2}

\end{tabular}

\end{block}

\begin{block}{}

For more informations about tables, see

\begin{center}

{\bf http://www.uni-giessen.de/hrz/tex/cookbook/sixth.html}

\end{center}

\begin{center}

{\bf http://latex.computersci.org//env-tables.3.html}

\end{center}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 34 / 60

Page 36: Latex Beamer

Columns

Left Block

Content of the left block

Right Block

Content of the right block

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 35 / 60

Page 37: Latex Beamer

Columns

\begin{frame}[fragile]\frametitle{Columns}

\begin{columns}

\begin{column}{0.45\textwidth}

\begin{block}{Left Block}

Content of the left block

\begin{figure}

\includegraphics[width=.8\textwidth]{pics/pic1}

\end{figure}

\end{block}

\end{column}

\begin{column}{0.45\textwidth}

\begin{block}{Right Block}

Content of the right block

\begin{figure}

\includegraphics[width=.8\textwidth]{pics/pic2}

\end{figure}

\end{block}

\end{column}

\end{columns}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 36 / 60

Page 38: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 37 / 60

Page 39: Latex Beamer

Spacings

Use \vspace{...} for a vertical spacing

Use \hspace{...} for a horizontal spacing

Top left block

Bottom left block

Top right block

Bottom right block

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 38 / 60

Page 40: Latex Beamer

Spacings

\begin{frame}[fragile]\frametitle{Spacings}

\begin{block}{}

\begin{itemize}

\item Use \verb|\vspace{...}| for a vertical spacing

\item Use \verb|\hspace{...}| for a horizontal spacing

\end{itemize}

\end{block}

\begin{columns}

\begin{column}{0.4\textwidth}

\begin{block}{Top left block}\end{block}

\vspace{1cm}

\begin{block}{Bottom left block}\end{block}

\end{column}

\hspace{1cm}

\begin{column}{0.4\textwidth}

\begin{block}{Top right block}\end{block}

\vspace{2cm}

\begin{block}{Bottom right block}\end{block}

\end{column}

\end{columns}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 39 / 60

Page 41: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 40 / 60

Page 42: Latex Beamer

Mathematical Formula

Formula Environments

The first example is an in-line formula: x = a + b. The next formula isslightly more complicated and therefore out-of-line:

|~v | =√

v20 + v2

1 + · · ·+ v2n

For a more sophisticated formula the math environment is used:

∑Nn=0 gn(x) =

∑Nn=0 gn(x) =

∫ ba f (x) dx =

b∫a

f (x) dx =∮ dc F (z) dz

You can even number the equations in an equation array:

x = a + b (1)

y = a− b

z = a · b (2)

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 41 / 60

Page 43: Latex Beamer

Mathematical Formula

\begin{frame}[fragile]\frametitle{Mathematical Formula}

\begin{block}{Formula Environments}

The first example is an in-line formula: $x = a + b$. The next formula

is slightly more complicated and therefore out-of-line:

$$ |\vec{v}| = \sqrt{v_0^2 + v_1^2 + \cdots + v_n^2} $$

For a more sophisticated formula the \verb|math| environment is used:

\begin{center}

\begin{math}

\sum_{n=0}^N g_n(x) = \sum\nolimits_{n=0}^N g_n(x)

= \int_a^b f(x) \,\mbox{d}x

= \int\limits_a^b f(x) \,\mbox{d}x

= \oint_c^d F(z) \,\mbox{d}z

\end{math}

\end{center}

You can even number the equations in an equation array:

\begin{eqnarray}

x & = & a + b \\

y & = & a - b \nonumber \\

z & = & a \cdot b

\end{eqnarray}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 42 / 60

Page 44: Latex Beamer

Mathematical Formula

Automatic Brackets (x2)4

= [f (x)]2

Manual Brackets

Manual brackets are created via the keywords \big, \Big, \bigg, or Bigg:

(x2)4

=

[f (x)

]2

Spacingsxx x xx x x

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 43 / 60

Page 45: Latex Beamer

Mathematical Formula

\begin{frame}[fragile]\frametitle{Mathematical Formula}

\begin{block}{Automatic Brackets}

\begin{center}

$\left(x^2\right)^4 = \left[f(x)\right]^2$

\end{center}

\end{block}

\begin{block}{Manual Brackets}

Manual brackets are created via the keywords \verb|\big|, \verb|\Big|,

\verb|\bigg|, or \verb|Bigg|:\\

\begin{center}

$\Big(x^2\big)^4 = \Bigg[f(x)\Bigg]^2$

\end{center}

\end{block}

\begin{block}{Spacings}

\begin{center}

$x x \, x \; x \! x \quad x \qquad x$

\end{center}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 44 / 60

Page 46: Latex Beamer

Mathematical Formula

Text in Formula

a > c follows from a > b and b > c

Matrices

a11 a12 · · · a1n...

.... . .

...an1 an2 · · · ann

Mathematical Symbols

http://www.uni-giessen.de/hrz/tex/cookbook/seventh.html

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 45 / 60

Page 47: Latex Beamer

Mathematical Formula

\begin{frame}[fragile]\frametitle{Mathematical Formula}

\begin{block}{Text in Formula}

\begin{center}

$a > c \mbox{ follows from } a > b \mbox{ and } b > c$

\end{center}

\end{block}

\begin{block}{Matrices}

\begin{eqnarray*}

\left( \begin{array}{*{4}{c}}

a_{11} & a_{12} & \cdots & a_{1n} \\

\vdots & \vdots & \ddots & \vdots \\

a_{n1} & a_{n2} & \cdots & a_{nn} \\

\end{array}

\right)

\end{eqnarray*}

\end{block}

\begin{block}{Mathematical Symbols}

\begin{center}

http://www.uni-giessen.de/hrz/tex/cookbook/seventh.html

\end{center}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 46 / 60

Page 48: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 47 / 60

Page 49: Latex Beamer

Sequence Control (1)

First Block

This slide demonstrates some sequence control mechanisms. This block,for instance, is visible on all slides for this frame.

Second Block

This block however is visible only from the second slide on. It contains anitemization where every item appears on a new slide.

First item

Second item

Third item

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 48 / 60

Page 50: Latex Beamer

Sequence Control (1)

First Block

This slide demonstrates some sequence control mechanisms. This block,for instance, is visible on all slides for this frame.

Second Block

This block however is visible only from the second slide on. It contains anitemization where every item appears on a new slide.

First item

Second item

Third item

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 48 / 60

Page 51: Latex Beamer

Sequence Control (1)

First Block

This slide demonstrates some sequence control mechanisms. This block,for instance, is visible on all slides for this frame.

Second Block

This block however is visible only from the second slide on. It contains anitemization where every item appears on a new slide.

First item

Second item

Third item

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 48 / 60

Page 52: Latex Beamer

Sequence Control (1)

First Block

This slide demonstrates some sequence control mechanisms. This block,for instance, is visible on all slides for this frame.

Second Block

This block however is visible only from the second slide on. It contains anitemization where every item appears on a new slide.

First item

Second item

Third item

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 48 / 60

Page 53: Latex Beamer

Sequence Control (1)

\begin{frame}\frametitle{Sequence Control (1)}

\begin{block}{First Block}

This slide demonstrates some sequence control mechanisms.

This block, for instance, is visible on all slides for this

frame.

\end{block}

\pause

\begin{block}{Second Block}

This block however is visible only from the second slide on. It

constains an itemization where every item appears on a new slide.

\begin{itemize}[<+->]

\item First item

\item Second item

\item Third item

\end{itemize}

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 49 / 60

Page 54: Latex Beamer

Sequence Control (2)

First block

This block is visible only on the first and third slide of this frame. On thesecond slide, it is replaced by the second block. Good thing is, it needs nospace while it is invisible!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 50 / 60

Page 55: Latex Beamer

Sequence Control (2)

Second block

This block replaces the first one, so this one is visible on the second slideof this frame.

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 50 / 60

Page 56: Latex Beamer

Sequence Control (2)

First block

This block is visible only on the first and third slide of this frame. On thesecond slide, it is replaced by the second block. Good thing is, it needs nospace while it is invisible!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 50 / 60

Page 57: Latex Beamer

Sequence Control (2)

\begin{frame}\frametitle{Sequence Control (2)}

\only<1,3> {

\begin{block}{First block}

\vspace{0.3cm}

This block is visible only on the first and third slide of

this frame. On the second slide, it is replaced by the second

block. Good thing is, it needs no space while it is invisible!

\vspace{0.3cm}

\end{block}

}

\only<2> {

\begin{block}{Second block}

\vspace{0.3cm}

This block replaces the first one, so this one is visible on

the second slide of this frame.

\vspace{0.3cm}

\end{block}

}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 51 / 60

Page 58: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PagesMarkupsFigures, Tables, and ColumnsSpacingsMathematical FormulaSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 52 / 60

Page 59: Latex Beamer

Source Code in the Presentation

C++ example

using namespace std;

typedef istream_iterator<string> in;typedef ostream_iterator<string> out;

vector<string> source( in(cin), in() );sort( source.begin(), source.end() );copy( source.begin(), source.end(), out( cout, "\n" ) );

Attention!

Note that for the source code the frame was declared fragile!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 53 / 60

Page 60: Latex Beamer

Source Code in the Presentation

\begin{frame}[fragile]\frametitle{Source Code in the Presentation}

\begin{block}{C++ example}

\begin{verbatim}

using namespace std;

typedef istream_iterator<string> in;

typedef ostream_iterator<string> out;

vector<string> source( in(cin), in() );

sort( source.begin(), source.end() );

copy( source.begin(), source.end(), out( cout, "\n" ) );

\end{verbatim }

\end{block}

\begin{block}{Attention!}

Note that for the \verb|source code| the frame was declared

fragile!

\end{block}

\end{frame}

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 54 / 60

Page 61: Latex Beamer

Outline

Some LaTeX Background

LaTeX Beamer

StylesThe MakefileThe Document HeadThe Title and Outline PageMarkupsFigures, Tables, and ColumnsSpacingsSequence ControlSource Code in the Presentation

The Six Rules for a Successful Presentation

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 55 / 60

Page 62: Latex Beamer

The Six Rules for a Successful Presentation

Rule #1

Make sure your audience can see what you want them to see!

This in turn means making sure that

There is good color contrast

Colors are wisely used to highlight a specific detail

The font you use is large enough

Everything is readable from every possible distance

There is not much information on any one slide

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 56 / 60

Page 63: Latex Beamer

The Six Rules for a Successful Presentation

Rule #2

Make sure that your audience understands exactly what you want them tosee and consider!

This in turn means making sure that

All diagrams, pictures, tables, and formulas are clearly labeled

All diagrams are scaled to make important distinctions clear

No diagrams, pictures, or tables contain information which is notrelevant to the point you wish to make

Every slide has a distinct purpose

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 57 / 60

Page 64: Latex Beamer

The Six Rules for a Successful Presentation

Rule #3

Make sure you stay within the bounds of your given time!

Prepare an appropriate number of slides (rule of thumb: minutes/3)

Select the most important details that fit into the time frame

Practice the presentation at least once

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 58 / 60

Page 65: Latex Beamer

The Six Rules for a Successful Presentation

Rule #4

Use as little text as possible. Use key world and NOT whole sentences!

A presentation is NOT a handout/report

Avoid text heavy slides

Pick the most important information and explain it to the audience

Rule #5

Do not overcrowd your slides with information!

Rule #6

Use a spell checker to finalize your presentation (ispell, e.g.)!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 59 / 60

Page 66: Latex Beamer

The Six Rules for a Successful Presentation

Rule #4

Use as little text as possible. Use key world and NOT whole sentences!

A presentation is NOT a handout/report

Avoid text heavy slides

Pick the most important information and explain it to the audience

Rule #5

Do not overcrowd your slides with information!

Rule #6

Use a spell checker to finalize your presentation (ispell, e.g.)!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 59 / 60

Page 67: Latex Beamer

The Six Rules for a Successful Presentation

Rule #4

Use as little text as possible. Use key world and NOT whole sentences!

A presentation is NOT a handout/report

Avoid text heavy slides

Pick the most important information and explain it to the audience

Rule #5

Do not overcrowd your slides with information!

Rule #6

Use a spell checker to finalize your presentation (ispell, e.g.)!

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 59 / 60

Page 68: Latex Beamer

LaTeX References

LaTeX reference (German)

http://www.uni-giessen.de/hrz/tex/cookbook/cookbook.html

LaTeX Beamer reference (German)

http://mo.mathematik.uni-stuttgart.de/kurse/kurs44/

LaTeX reference (English)

http://cs.wlu.edu/ necaise/refs/latex2e/

Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 60 / 60