beamer article example
TRANSCRIPT
-
7/23/2019 Beamer Article Example
1/49
Introduction to Beamer
Matthias Gerdts
School of MathematicsThe University of [email protected]
http://web.mat.bham.ac.uk/M.Gerdts
May 2008
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 1 / 35
http://find/ -
7/23/2019 Beamer Article Example
2/49
Contents
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special Effects
Style
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 2 / 35
http://find/ -
7/23/2019 Beamer Article Example
3/49
Contents
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special Effects
Style
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 2 / 35
http://find/ -
7/23/2019 Beamer Article Example
4/49
Contents
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special Effects
Style
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 2 / 35
http://find/ -
7/23/2019 Beamer Article Example
5/49
Contents
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special Effects
Style
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 2 / 35
http://find/ -
7/23/2019 Beamer Article Example
6/49
Contents
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special Effects
Style
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 2 / 35
http://find/ -
7/23/2019 Beamer Article Example
7/49
Contents
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special Effects
Style
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 2 / 35
I d i
http://find/ -
7/23/2019 Beamer Article Example
8/49
Introduction
Current Section
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special Effects
Style
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 3 / 35
I t d ti
http://find/ -
7/23/2019 Beamer Article Example
9/49
Introduction
Creating Presentations in BEAMER
What is BEAMER?BEAMER is a LATEXdocument class designed for presentations
BEAMER can also be used to create reports from presentations
(useful for handouts or scripts, which can be created
automatically)LATEXbased (all common LATEXcommands can be used)
pictures, movies, animations etc can be included
easy to use and extremely powerful with a wide range of different
styles and themes availableadvanced users can redefine and adjust almost every detail in
order to meet personal preferences
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 4 / 35
Introduction
http://find/http://goback/ -
7/23/2019 Beamer Article Example
10/49
Introduction
Creating PDF
Creating a PDF file:
use pdflatex filename to create a PDF file
pdflatex allows to use the graphic formats .pdf, .jpg, .png
pdflatex does not support .ps, .eps
Download:
BEAMER comes with most standard LATEXinstallations
if not: (GNU Public License)
http://sourceforge.net/projects/latex-beamer/
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 5 / 35
Structure of a Beamer Document
http://find/ -
7/23/2019 Beamer Article Example
11/49
Structure of a Beamer Document
Current Section
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special EffectsStyle
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 6 / 35
Structure of a Beamer Document
http://find/ -
7/23/2019 Beamer Article Example
12/49
Structure of a Beamer Document
Beamer Presentation: Header I
Documentclass, mode, and theme:\documentclass{beamer}
\mode {
\usetheme{Warsaw}
\useoutertheme{infolines}
\useinnertheme{rounded}
\setbeamercovered{transparent}\setbeamertemplate{theorems}[numbered]
\usecolortheme{rose}
}
alternative themes: Frankfurt, Berlin, Bergen,Boadilla, Madrid, AnnArbor,
Pittsburgh, Rochester,Antibes,JuanLesPins, . . .alternative color themes: seahorse, structure, albatross, beetle, crane, dove,fly, seagull, wolverine, . . .
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 7 / 35
Structure of a Beamer Document
http://find/ -
7/23/2019 Beamer Article Example
13/49
Structure of a Beamer Document
Beamer Presentation: Header II
Including packages:
\usepackage{amsmath,amssymb}
Defining a titlepage:
\titlepage
\title[short title]{title}\subtitle{...}
\author[short]{name1 \inst{1} \and name2 \inst{2}}
\institute[short]{\inst{1} institute1 \and \inst{2} institute2}
\date{...}
\logo{...}
Main document:
\begin{document}
presentation
\end{document}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 8 / 35
Structure of a Beamer Document
http://find/ -
7/23/2019 Beamer Article Example
14/49
Structure of a Beamer Document
General Structure of a Presentation
header
\begin{document}
\section{Section 1}
\begin{frame}
\frametitle{My first slide}
a single slide
\end{frame}
\end{document}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 9 / 35
Structure of a Beamer Document
http://find/ -
7/23/2019 Beamer Article Example
15/49
Creating Handout from Presentation
Documentclass, mode, and theme:
\documentclass[a4paper]{article}
\usepackage[envcountsect]{beamerarticle}
\mode {
\usepackage{fullpage}
}
Then: include packages, define titlepage, . . .
Main document:
\begin{document}
presentation
\end{document}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 10 / 35
Structuring Documents
http://find/ -
7/23/2019 Beamer Article Example
16/49
Current Section
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special EffectsStyle
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 11 / 35
Structuring Documents Frames
http://find/ -
7/23/2019 Beamer Article Example
17/49
Frame Environment I
A single slide is defined as follows:
\begin{frame}
\frametitle{title}
\framesubtitle{subtitle}
content in standard LaTeX notion
\end{frame}
Remark: only those contents are displayed which fit on a single page
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 12 / 35
Structuring Documents Frames
http://find/ -
7/23/2019 Beamer Article Example
18/49
Frame Environment II
Slides with (automatic) pagebreaks are defined as follows:
\begin{frame}[allowframebreaks]
\frametitle{title}
\framesubtitle{subtitle}
content in standard LaTeX notion
\end{frame}
The \newpage or \pagebreak commands can be used to enforce a
pagebreak at a specified position.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 13 / 35
Structuring Documents Sections and Subsections
http://find/http://goback/ -
7/23/2019 Beamer Article Example
19/49
Structuring
The commands
\part{title}
\section{title}\subsection{title}
known from LaTeX can be used to structure the presentation. These
commands can be used outside of the frame environment. The solely
purpose is to create an entry in the table of contents.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 14 / 35
Structuring Documents Table of Contents
http://find/ -
7/23/2019 Beamer Article Example
20/49
Table of Contents I
Table of contents all at once:
\begin{frame}
\frametitle{Contents}
\tableofcontents
\end{frame}
Table of contents with pause:
\begin{frame}
\frametitle{Contents}
\tableofcontents[pausesections,shaded]
\end{frame}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 15 / 35
Structuring Documents Table of Contents
http://find/ -
7/23/2019 Beamer Article Example
21/49
Table of Contents II
Table of contents displayed at begin of each section:
\AtBeginSection[] {
\begin{frame}
\frametitle{Current Section}
\tableofcontents[currentsection]
\end{frame}}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 16 / 35
Theorems etc.
http://find/ -
7/23/2019 Beamer Article Example
22/49
Current Section
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special EffectsStyle
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 17 / 35
Theorems etc.
http://find/ -
7/23/2019 Beamer Article Example
23/49
Theorems, Definitions, Remarks, . . . I
Theorems, definitions, examples, . . . can be defined as usual:
Theorem 1 (This is a theorem)
\begin{theorem}[This is a theorem]
theorem
\end{theorem}
Definition 2 (This is a definition)
\begin{definition}[This is a definition]
definition
\end{definition}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 18 / 35
Theorems etc.
Th D fi i i R k II
http://find/ -
7/23/2019 Beamer Article Example
24/49
Theorems, Definitions, Remarks, . . . II
Example 3 (This is an example)
\begin{example}[This is an example]
example
\end{example}
Proof.\begin{proof}
proof
\end{proof}
This is a block environment\begin{block}{This is a block environment}
text
\end{block}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 19 / 35
Overlays
C t S ti
http://find/ -
7/23/2019 Beamer Article Example
25/49
Current Section
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special EffectsStyle
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 20 / 35
Overlays
O l
http://find/ -
7/23/2019 Beamer Article Example
26/49
Overlays
In order to display parts of text step by step the command \pause canbe used, e.g.
2 is prime
3 is prime
4 is not prime
In LATEX:
\begin{itemize}
\item 2 is prime \pause
\item 3 is prime \pause\item 4 is not prime
\end{itemize}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 21 / 35
Overlays
O l
http://find/ -
7/23/2019 Beamer Article Example
27/49
Overlays
In order to display parts of text step by step the command \pause canbe used, e.g.
2 is prime
3 is prime
4 is not prime
In LATEX:
\begin{itemize}
\item 2 is prime \pause
\item 3 is prime \pause\item 4 is not prime
\end{itemize}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 21 / 35
Overlays
Overlays
http://find/ -
7/23/2019 Beamer Article Example
28/49
Overlays
In order to display parts of text step by step the command \pause canbe used, e.g.
2 is prime
3 is prime
4 is not prime
In LATEX:
\begin{itemize}
\item 2 is prime \pause
\item 3 is prime \pause\item 4 is not prime
\end{itemize}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 21 / 35
Overlays
Overlays
http://goforward/http://find/http://goback/ -
7/23/2019 Beamer Article Example
29/49
Overlays
In order to display parts of text step by step the command \pause canbe used, e.g.
2 is prime
3 is prime
4 is not prime
In LATEX:
\begin{itemize}
\item 2 is prime \pause
\item 3 is prime \pause\item 4 is not prime
\end{itemize}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 21 / 35
Overlays
Overlays
http://goforward/http://find/http://goback/ -
7/23/2019 Beamer Article Example
30/49
Overlays
In order to display items in an itemize or enumerate environment in a
specified order the command \item can be used:
1 this text appears from the first slide on
2 this text appears from the second slide on
3 this text appears from the third slide on
4 this text appears only on the first and second slide
In LATEX:
\begin{enumerate}
\item this text appears from the first slide on\item this text appears from the second slide on
\item this text appears from the third slide on
\item this text appears only on the first and second slide
\end{enumerate}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 22 / 35
Overlays
Overlays
http://goforward/http://find/http://goback/ -
7/23/2019 Beamer Article Example
31/49
Overlays
In order to display items in an itemize or enumerate environment in a
specified order the command \item can be used:
1 this text appears from the first slide on
2 this text appears from the second slide on
3 this text appears from the third slide on
4 this text appears only on the first and second slide
In LATEX:
\begin{enumerate}
\item this text appears from the first slide on\item this text appears from the second slide on
\item this text appears from the third slide on
\item this text appears only on the first and second slide
\end{enumerate}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 22 / 35
Overlays
Overlays
http://goforward/http://find/http://goback/ -
7/23/2019 Beamer Article Example
32/49
Overlays
In order to display items in an itemize or enumerate environment in a
specified order the command \item can be used:
1 this text appears from the first slide on
2 this text appears from the second slide on
3 this text appears from the third slide on
4 this text appears only on the first and second slide
In LATEX:
\begin{enumerate}
\item this text appears from the first slide on\item this text appears from the second slide on
\item this text appears from the third slide on
\item this text appears only on the first and second slide
\end{enumerate}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 22 / 35
Overlays
Overlays
http://find/ -
7/23/2019 Beamer Article Example
33/49
Overlays
In order to display parts of the text in a specified order, the commands\only{...}
\onslide{...}
\uncover{...}
can be used:
\onslide{this text appears on slides 2,3,5 only}
\uncover{Text shown from slide 3 on.} text occupies space on all
other slides
Remark: \only does not occupy space while \uncover does.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 23 / 35
Overlays
Overlays
http://find/ -
7/23/2019 Beamer Article Example
34/49
Overlays
In order to display parts of the text in a specified order, the commands\only{...}
\onslide{...}
\uncover{...}
can be used:
\onslide{this text appears on slides 2,3,5 only}
\uncover{Text shown from slide 3 on.} text occupies space on all
other slides
Remark: \only does not occupy space while \uncover does.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 23 / 35
Overlays
Overlays
http://goforward/http://find/http://goback/ -
7/23/2019 Beamer Article Example
35/49
Overlays
In order to display parts of the text in a specified order, the commands\only{...}
\onslide{...}
\uncover{...}
can be used:
\onslide{this text appears on slides 2,3,5 only}
\uncover{Text shown from slide 3 on.} text occupies space on all
other slides
Remark: \only does not occupy space while \uncover does.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 23 / 35
Overlays
Overlays
http://find/ -
7/23/2019 Beamer Article Example
36/49
Overlays
In order to display parts of the text in a specified order, the commands
\only{...}
\onslide{...}
\uncover{...}
can be used:
\only{this text appears from slide 4 on}
\onslide{this text appears on slides 2,3,5 only}
\uncover{Text shown from slide 3 on.} text occupies space on all
other slides
Remark: \only does not occupy space while \uncover does.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 23 / 35
Overlays
Overlays
http://find/ -
7/23/2019 Beamer Article Example
37/49
Overlays
In order to display parts of the text in a specified order, the commands
\only{...}
\onslide{...}
\uncover{...}
can be used:
\only{this text appears from slide 4 on}
\onslide{this text appears on slides 2,3,5 only}
\uncover{Text shown from slide 3 on.} text occupies space on all
other slides
Remark: \only does not occupy space while \uncover does.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 23 / 35
Overlays
Mode Specifications
http://find/ -
7/23/2019 Beamer Article Example
38/49
Mode Specifications
It is possible to specify passages in the presentation depending on the
current mode or or :
\only{This text only appears in article
mode}
\begin{frame} ... \end{frame}
\section{section only exists in
presentation mode}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 24 / 35
Special Effects
Current Section
http://find/ -
7/23/2019 Beamer Article Example
39/49
Cu e t Sect o
1 Introduction
2 Structure of a Beamer Document
3 Structuring Documents
Frames
Sections and Subsections
Table of Contents
4 Theorems etc.
5 Overlays
6 Special EffectsStyle
Movies
References
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 25 / 35
Special Effects
Highlighting, Colours, Fonts
http://find/http://goback/ -
7/23/2019 Beamer Article Example
40/49
g g g, ,
\alert{text} prints text in red.
\setbeamerfont{title}{shape=\itshape,family=\rmfamily}
changes font for the title
\setbeamercolor{normal text}{bg=red!20}
changes colours for normal text
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 26 / 35
Special Effects Style
Adjusting the Style
http://find/ -
7/23/2019 Beamer Article Example
41/49
j g y
Adjustments to the style of BEAMER can be done using the command
\setbeamertemplate{beamer element}[option]{your
definition}
beamer element denotes a template defined in BEAMER and your
definition denotes the assigned value to this template.
Example:
\setbeamertemplate{headline}{user defined headline}
can be used to define a new headline.
There are hundreds of templates that can be adjusted if desired.
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 27 / 35
Special Effects Movies
Movies and External Documents
http://find/ -
7/23/2019 Beamer Article Example
42/49
Movies (or any document) can be included using the following
command:
\href{run:filename}{text or image}
BEAMER does not handle external filetypes (.pdf,.mpg,.avi,.doc,. . . )
explicitly: BEAMER just sends the command to the operating systemand the application associated with the filetype is executed by the
operating system
Example:
\href{run:manutecr3_vorne.mpg}{
\includegraphics[scale=0.08]{manutecr3_vorne.jpg}}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 28 / 35
Special Effects Movies
Special Effects
http://find/http://goback/ -
7/23/2019 Beamer Article Example
43/49
p
its possible to include movies (and even sound) inline using the
package movie15; see
http://www.uoregon.edu/noeckel/PDFmovie.htmlits possible to include effects known from powerpoint
presentations like slides coming from the left or right, top or bottom
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 29 / 35
Special Effects Movies
Special Effect: Slide Transition
http://find/ -
7/23/2019 Beamer Article Example
44/49
This slide transition scheme obtained by the command (put inside of a
frame environment)
\transdissolve
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 30 / 35
Special Effects Movies
Special Effect: Shaded Background
http://find/ -
7/23/2019 Beamer Article Example
45/49
This shading was obtained by the command (put outside of a frame)
\setbeamertemplate{background canvas}[vertical shading][
top=blue,bottom=white]
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 31 / 35
Special Effects References
References
http://find/ -
7/23/2019 Beamer Article Example
46/49
References can be added as usual using \cite{...}
F. H. CLARKE, Optimization and Nonsmooth Analysis, John Wiley
& Sons, New York, 1983.
In LATEX:
\begin{thebibliography}{10}
\beamertemplatebookbibitems
\bibitem{Cla83}
{\sc F. H. Clarke}, {\em Optimization and Nonsmooth Analysis}, John
Wiley & Sons, New York, 1983.\end{thebibliography}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 32 / 35
Special Effects References
Appendix
http://find/ -
7/23/2019 Beamer Article Example
47/49
An appendix can be added as usual using \appendix outside of a
frame environment.
\appendix
\section{Appendix 1}\begin{frame}
content
\end{frame}
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 33 / 35
Special Effects References
And much more...
http://find/ -
7/23/2019 Beamer Article Example
48/49
creating hyperlinks for jumping from slide to slide
zoom features for complicated graphics
sound
adding notes
...
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 34 / 35
Special Effects References
http://find/ -
7/23/2019 Beamer Article Example
49/49
Thanks for your attention!
Questions?
Further information:
web.mat.bham.ac.uk/M.Gerdts
M. Gerdts (The University of Birmingham) Introduction to Beamer May 2008 35 / 35
http://find/