Slides
beamer presentations with frames, overlays, blocks, columns and themes.
The beamer class sets each frame as a page of its own, 128 by 96 millimetres, in eleven-point sans serif.
\documentclass{beamer}
\usetheme{Madrid}
\title[Energy Estimates]{Energy Estimates for Navier--Stokes}
\author{Mara Ellison}
\date{\today}
\begin{document}
\frame{\titlepage}
\begin{frame}{Motivation}
\begin{itemize}
\item<1-> Smooth solutions satisfy an energy equality
\item<2-> The decay is exponential without forcing
\end{itemize}
\end{frame}
\begin{frame}{Main result}
\begin{block}{Theorem}
The kinetic energy decays as $e^{-\nu\lambda_1 t}$.
\end{block}
\end{frame}
\end{document}Frames
The frame block
\begin{frame}{Title} ... \end{frame} is one frame. Its title is its argument or the \frametitle it opens with, set at its head. What it holds is centred in the rest of the frame, or placed at the top with \begin{frame}[t].
The title page
\frame{\titlepage} sets the title page, with the title, subtitle, author, institute and date the preamble gives.
Blocks
block, alertblock and exampleblock set their text under a coloured bar holding their title:
\begin{alertblock}{Warning}
The scheme is only conditionally stable.
\end{alertblock}Columns
columns sets its column blocks side by side, each a width of its own. \column{0.5\textwidth} starts the next one without a block:
\begin{columns}
\begin{column}{0.5\textwidth} Left \end{column}
\begin{column}{0.5\textwidth} Right \end{column}
\end{columns}Outlines
\tableofcontents in a frame sets the talk's outline, and \AtBeginSection's frames are set at the start of each section.
Theorems and proofs
Theorems and proofs are set as in an article.
Overlays
A frame becomes as many slides as its overlays ask for, each a page of the PDF.
Overlay specifications
The steps in angle brackets are read as beamer reads them:
| Specification | Slides |
|---|---|
<2> | Slide 2 |
<2-> | Slide 2 and every one after it |
<-3> | Slides 1 to 3 |
<1-3,5> | Slides 1 to 3, and 5 |
<+-> | From the next step on, one step at a time |
<.-> | From the current step on |
<+(1)-> | From one step after the next |
\pause
\pause hides the rest of the frame until the next step; \pause[3] names the step.
Showing and hiding
| Command | Effect |
|---|---|
\only<2>{...} | Present on slide 2 only, taking no room on the others |
\uncover<2->{...}, \visible<2->{...} | Keeps its room on every slide, seen from slide 2 |
\invisible<2>{...} | The other way round |
\onslide<2->{...} | Like \uncover, or sets everything after it when given no argument |
\alt<2>{a}{b}, \temporal | One thing on some slides, another on the rest |
What a slide does not show keeps its place, so the slides of a frame line up. onlyenv, uncoverenv, visibleenv and invisibleenv work as blocks.
Lists step by step
\item<2-> shows an item from slide 2, and \begin{itemize}[<+->] shows one item per step.
Highlighting
\alert<2>{...} highlights its text on slide 2. \textbf<2>, \textit, \emph, \color and \textcolor take overlays too, and so do blocks.
Themes
\usetheme
\usetheme{Madrid} draws a theme's head and foot, frame titles on a band or in the structure's colour, its bullets and its colours:
Madrid, AnnArbor, Boadilla, CambridgeUS, Warsaw, Copenhagen, Luebeck, Malmoe, Berlin, Darmstadt, Ilmenau, Frankfurt, Dresden, Singapore, Szeged, Antibes, JuanLesPins, Montpellier, Rochester, Pittsburgh, the sidebar themes and metropolis.
Colour themes
\usecolortheme{whale} changes only the colours: whale, dolphin, seahorse, beaver, crane, wolverine, spruce, dove, seagull, fly and more.
Outer and inner themes
\useoutertheme and \useinnertheme choose the head and foot, or the bullets and blocks, alone.
What the foot carries
A short title, author or date, as in \title[Short]{...}, is what the foot carries.
Themes mLaTeX does not know
A theme mLaTeX does not know is drawn as the default, with a warning.
A sidebar theme's sidebar is not drawn yet; its frames are set without it.
Related packages
- Classes: every package, with its commands and an example.