## LaTeX Beamer

I really enjoy creating presentations with LaTeX. The reasons are:

• You can use versioning (GIT, SVN, ...)
• You can use your favorite editor!
• When you've created an animation with TikZ, you can easily go one step back an go through it as fast as it is apropriate!
• Good separation of presentation and content
• It compiles to PDF
• Everybody can open it
• It always looks the same (no moved elements or hidden bullet points)
• You can use math mode :-)
• No need to buy anything. It's free and OpenSource.
• A big community (StackExchange and LateX-Community) helps you, when you got questions.

I'll now introduce you to the basics of LaTeX beamer presentations. If you only look for example, please go to my GitHub LaTeX Repository.

Contents

## Basics

This is a basic presentation:

\documentclass{beamer}
\usetheme{Frankfurt}
\usepackage{hyperref}
\usepackage[utf8]{inputenc} % this is needed for german umlauts
\usepackage[english]{babel} % this is needed for german umlauts
\usepackage[T1]{fontenc}    % this is needed for correct output
% of umlauts in pdf

\begin{document}

\subtitle{A subtitle}
\author{Martin Thoma}
\date{25. March 2013}
\subject{Computer Science}

\frame{\titlepage}

\section{Introduction}
\subsection{A subsection!}
\begin{frame}{Slide title}
Slide content
\end{frame}

\end{document}


## Style

If you want to create nice-looking presentations like this one or that one, you should probably adjust the style. Here is an overview of the default ones that LaTeX has: Beamer theme gallery or here.

The important commands for changing the appearance, that should get included just after documentclass, are:

\usetheme{Frankfurt}
\usecolortheme{default}


When you're from KIT, you should use the KIT theme.

Here are some screenshots:

## Sections and subsections

Take a look at the slides I've included above. Do you notice the little bubbles at the bottom that indicate how many slides are left?

You get the text over the bubbles with \section{Your text} and the bubbles with frame, but you need at least one \subsection{bla}! When you make more than one subsection, the frame-bubbles that belong to the same one get highlighted.

## Reveal information

You might want to try those commands to hide and reveal information:

• \pause
• \uncover
• \visible
• \onslide and \only

You can use it like this:

\begin{frame}{Another title}
Some text\\
\uncover<2->{Uncover me on slide 2 (-)\\}
\visible<3->{visible from slide 3 on (-)\\}
\only<4->{only from slide 4 (-)\\}
\onslide<5->{on slide 5 and further (-)\\}
\uncover<6>{Uncover me on slide 6 \\}
\visible<7>{visible on 7\\}
\only<8>{only on slide 8 \\}
\alt<8>{I am on slide 8\\}{I am not on slide 8\\}
\onslide<9>{on slide 9\\}
\end{frame}


Note that the numbers work like \uncover<n-m>{ELEMENT}. If no m is specified, ELEMENT is visible until end of this frame.

When you have a list and you want to uncover it element by element, you can use this:

\begin{itemize}[<+->]
\item one
\item two
\item three
\end{itemize}


## Blocks

You can use block, exampleblock or alertblock inside your frame:

\begin{exampleblock}{Test}
This is my text.
\end{exampleblock}


It looks like this:

LaTeX Beamer blocks: block, exampleblock, alertblock

## Images

Quite often, you want to have one big image.

You need \usepackage{graphicx} in your preamble.

This is how you get the image it:

\begin{frame}{My frame title}
\includegraphics[width=\textwidth, height=0.8\textheight, keepaspectratio]{../relative/path/image.jpg}
\end{frame}