Beamer class
LaTeX presentation document classBeamer is a commonly used LaTeX class for creating slides/presentations. It enables the use of “frames” to allow the user to place material between distinct slides in the rendered PDF document.
Usage
Basic Outline
An extremely simple Beamer document outline (taken from Overleaf) looks as follows:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\title{Sample title}
\author{Anonymous}
\institute{Overleaf}
\date{2014}
\begin{document}
\frame{\titlepage}
\begin{frame}
\frametitle{Sample frame title}
This is a text in the first frame.\end{frame}
\end{document}
Here we see:
- Beamer document class is set with
\documentclass{beamer}
- Title page info is provided as usual, and later created with
\frame{\titlepage}
- The one and only non-title slide in this document is wrapped in the
\begin{frame} ... \end{frame}
tags. More on frames below.
This is a very basic outline, but there are many other components to creating a Beamer presentation.
Table of contents
A simple TOC frame can be added:
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents
\end{frame}
Frames
Basic components of a frame:
\frametitle{<title>}
: title of frame\framesubtitle{<subtitle>}
: subtitle of frame
Highlighting text
\alert{highlighted}
: basic inline highlights\begin{block}{Remark} ... \end{block}
: text block (default blue)\begin{alertblock}{Theorem} ... \end{block}
: text alertblock (default red)\begin{example}{Remark} ... \end{block}
: text block (default green)
Themes and customization
Weird things
\lt
and\gt
LaTeX math symbols throw weird errors for me. Replacing them with their literal characters seems to be the easiest work-around.