Latex Beamer

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 2 / 60
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 3 / 60
Some LaTeX Background
L
A
T
E
X
L
A
T
E
X builds on the T
E
X type setting system
L
A
T
E
X provides a high-level language that accesses the power of T
E
X
Separation of content and visual presentation
L
A
T
E
X Beamer
Beamer is a L
A
T
E
X class for creating slides for presentations
Provides all necessary features for presentations
Visual presentation is dened by styles
Oers the output of PDF les, handouts, and articles
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 4 / 60
Some LaTeX Background
L
A
T
E
X
L
A
T
E
X builds on the T
E
X type setting system
L
A
T
E
X provides a high-level language that accesses the power of T
E
X
Separation of content and visual presentation
L
A
T
E
X Beamer
Beamer is a L
A
T
E
X class for creating slides for presentations
Provides all necessary features for presentations
Visual presentation is dened by styles
Oers the output of PDF les, handouts, and articles
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 4 / 60
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 5 / 60
The Annarbor Style
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 6 / 60
The Berkeley Style
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 7 / 60
The Boadilla Style
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 8 / 60
The CambridgeUS Style
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 9 / 60
The Geottingen Style
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 10 / 60
The Singapore Style
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 11 / 60
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 12 / 60
The Makele
The Makefile looks very similar to every other Makefile
mytalk: mytalk.pdf
mytalk.pdf: mytalk.tex
pdflatex mytalk.tex
pdflatex 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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 14 / 60
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 16 / 60
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 17 / 60
The Title Page
The title page is very small. All the information has been set before the
actual slide.
\begin{frame}[squeeze]
\titlepage
\end{frame}
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 18 / 60
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 19 / 60
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 21 / 60
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
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
Markups
Font Sizes
This 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
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
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 dierent font sizes on one slide are distracting!
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 26 / 60
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 28 / 60
Figures
Images are included via the figure environment. In order to move the
image to the center of the frame, use a center environment.
Figure: Caption above the gures.
Figure: Caption below the gures.
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 29 / 60
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
Multiple Figures
In order to arrange two gures next to each other, you can use the
\subfigure command. Note the dierent scaling in contrast to the
previous picture.
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 31 / 60
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
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
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
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
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 37 / 60
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
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 40 / 60
Mathematical Formula
Formula Environments
The rst example is an in-line formula: x = a + b. The next formula is
slightly more complicated and therefore out-of-line:
|v| =
_
v
2
0
+ v
2
1
+ + v
2
n
For a more sophisticated formula the math environment is used:

N
n=0
g
n
(x) =

N
n=0
g
n
(x) =
_
b
a
f (x) dx =
b
_
a
f (x) dx =
_
d
c
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
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
Mathematical Formula
Automatic Brackets
_
x
2
_
4
= [f (x)]
2
Manual Brackets
Manual brackets are created via the keywords \big, \Big, \bigg, or Bigg:
_
x
2
_
4
=
_
f (x)
_
2
Spacings
xx x xx x x
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 43 / 60
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
Mathematical Formula
Text in Formula
a > c follows from a > b and b > c
Matrices
_
_
_
a
11
a
12
a
1n
.
.
.
.
.
.
.
.
.
.
.
.
a
n1
a
n2
a
nn
_
_
_
Mathematical Symbols
http://www.uni-giessen.de/hrz/tex/cookbook/seventh.html
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 45 / 60
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 47 / 60
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 an
itemization 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
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 an
itemization 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
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 an
itemization 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
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 an
itemization 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
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
Sequence Control (2)
First block
This block is visible only on the rst 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!
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 50 / 60
Sequence Control (2)
Second block
This block replaces the rst one, so this one is visible on the second slide
of this frame.
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 50 / 60
Sequence Control (2)
First block
This block is visible only on the rst 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!
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 50 / 60
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Pages
Markups
Figures, Tables, and Columns
Spacings
Mathematical Formula
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 52 / 60
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
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
Outline
Some LaTeX Background
LaTeX Beamer
Styles
The Makele
The Document Head
The Title and Outline Page
Markups
Figures, Tables, and Columns
Spacings
Sequence Control
Source Code in the Presentation
The Six Rules for a Successful Presentation
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 55 / 60
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 specic 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
The Six Rules for a Successful Presentation
Rule #2
Make sure that your audience understands exactly what you want them to
see 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 not
relevant 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
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 t into the time frame
Practice the presentation at least once
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 58 / 60
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 nalize your presentation (ispell, e.g.)!
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 59 / 60
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 nalize your presentation (ispell, e.g.)!
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 59 / 60
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 nalize your presentation (ispell, e.g.)!
Max Mustermann (LSS Erlangen) LaTeX Beamer Example 1/1/2011 59 / 60
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

You might also like