Sei sulla pagina 1di 33

Outline Introduction Getting Started Graphics, Tags and Arrows Hyperlinks Making Handouts

A Beamer Tutorial

Dr. S. Kersey1 and Amy Kersey2

1 Department of Mathematical Sciences


Georgia Southern University

March 24, 2009

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows Hyperlinks Making Handouts

Outline
1 Introduction

2 Getting Started
Frontmatter
Frames
Frame Overlays
Slide Transitions
3 Graphics, Tags and Arrows
Including Graphics and Matlab
The Tikz Environment
4 Hyperlinks

5 Making Handouts

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows Hyperlinks Making Handouts

The Beamer Class

Beamer was created by Till Tantau for the purpose of making slide
presentations based on LATEX. He also developed a protable
graphics format (PGF) for inline graphics and the interface
language TikZ. Themes..

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Getting Started

Download MikTeX from http://miktex.org/ (for Windows)


Download TeXnicCenter from
http://sourceforge.net/projects/texniccenter/ (for Windows)
Download Beamer from
http://sourceforge.net/projects/latex-beamer/ (included in
MikTeX)
Download PGF/TikZ from
http://sourceforge.net/projects/latex-beamer/ (included in
MikTeX)
Download the Beamer Users Guide from www.ctan.org/tex-
archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Preamble and frontmatter

The documentclass and title page were created by the commands:


\documentclass[compress]{beamer}
\usetheme{Berlin}
\usepackage{beamerthemesplit}
\usepackage{graphicx}
\usepackage{tikz}
\title[Short title]{Long Title of your presentation}
\author{Your name}
\institute[GSU]{Department of Mathematical Sciences \\ Georgia Southern University}
\titlegraphic{\includegraphics[width=.5 true in]{ob}}
\date{\today}

Additional slides are created using the frame environment. you may specify a title using \frametitle{}.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Making Frames

Additional Frames are made with the Frame command.


\begin{document}
\begin{frame}
\titlepage
\ end{frame}
\section*{Outline}
\begin{frame}
\tableofcontents
\ end{frame}
\end{document}

Additional slides are created using the frame environment. you may specify a title using \frametitle{}.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Simple Overlays

Simple overlays can be created using the \pause command.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Simple Overlays

Simple overlays can be created using the \pause command.


Theorem
Let E be a subset of Rn . TFAE:
(a) E is closed and bounded.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Simple Overlays

Simple overlays can be created using the \pause command.


Theorem
Let E be a subset of Rn . TFAE:
(a) E is closed and bounded.
(b) E is compact.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Simple Overlays

Simple overlays can be created using the \pause command.


Theorem
Let E be a subset of Rn . TFAE:
(a) E is closed and bounded.
(b) E is compact.
(c) Every infinite subset of E has a limit point in E .

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Simple Overlays

Simple overlays can be created using the \pause command.


Theorem
Let E be a subset of Rn . TFAE:
(a) E is closed and bounded.
(b) E is compact.
(c) Every infinite subset of E has a limit point in E .

The equivalence of (a) and (b) is known as the Heinne-Borel


Theorem.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Simple Overlays

Here’s the code for the previous example:


\begin{theorem}
Let $E$ be a subset of $\RR^n$. TFAE:
\begin{itemize}
\item
$E$ is closed and bounded.
\pause
\item
$E$ is compact.
\pause
\item
Every infinite subset of $E$ has a limit point in $E$.
\end{itemize}
\end{theorem}

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

More complicated overlays are possible using overlay specifications.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

Definition
A prime number is a number that has exactly two divisors.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

Definition
A prime number is a number that has exactly two divisors.

Theorem
There is no largest prime number.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

Definition
A prime number is a number that has exactly two divisors.

Theorem
There is no largest prime number.

Proof.

1 Suppose that p were the largest prime number.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

Definition
A prime number is a number that has exactly two divisors.

Theorem
There is no largest prime number.

Proof.

1 Suppose that p were the largest prime number.


2 Let q be the product of the first p numbers.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

Definition
A prime number is a number that has exactly two divisors.

Theorem
There is no largest prime number.

Proof.

1 Suppose that p were the largest prime number.


2 Let q be the product of the first p numbers.
3 Then q + 1 is not divisible by any of them.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

Definition
A prime number is a number that has exactly two divisors.

Theorem
There is no largest prime number.

Proof.

1 Suppose that p were the largest prime number.


2 Let q be the product of the first p numbers.
3 Then q + 1 is not divisible by any of them.
4 Thus q + 1 is also prime and greater than p.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
reductio ad absurdum

Definition
A prime number is a number that has exactly two divisors.

Theorem
There is no largest prime number.

Proof.

1 Suppose that p were the largest prime number.


2 Let q be the product of the first p numbers.
3 Then q + 1 is not divisible by any of them.
4 Thus q + 1 is also prime and greater than p.

The proof used reductio ad absurdum.


S. Kersey, Amy Short title
Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Overlay Specifications
Here’s the code:
\begin{frame}
\frametitle{Overlay Specifications}
\framesubtitle{reductio ad absurdum}
\uncover<1>{More complicated overlays are possible using \emph{overlay specifications}.}
\pause
\begin{definition}
A \alert{prime number} is a number that has exactly two divisors.
\end{definition}
\pause
\begin{theorem}
There is no largest prime number.
\end{theorem}
\pause
\begin{proof}
\begin{enumerate}
\item<4-> Suppose that $p$ were the largest prime number.
\item<5-> Let $q$ be the product of the first $p$ numbers.
\item<6-> Then $q+1$ is not divisible by any of them.
\item<7-> Thus $q+1$ is also prime and greater than $p$.
\qedhere
\end{enumerate}
\end{proof}
\uncover<8->{The proof used \textit{reductio ad absurdum}.}
\ end{frame}

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Slide Transitions

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Slide Transitions

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Frontmatter
Hyperlinks Frames
MakingFrame
Handouts
Overlays Slide Transitions

Slide Transitions

Code:
\transblindsverticalh1-2i
\transglitterh2i
\transboxinh3i
\onlyh1i{\includegraphics[width=2in]{amy}}
\onlyh2i{\includegraphics[width=2in]{jing1}}
\onlyh3i{Code:}

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Including
Hyperlinks
Graphics
Making
and Matlab
HandoutsThe Tikz Environment

Includegraphics

As in LATEX, graphics are included using the includegraphics{}


command. However, since Beamer uses pdfLATEX, it can include
pdf, jpg, jpeg or png, but NOT eps files. Whereas, in LATEX (using
dvips) figures must be mainly in eps. Often the graphics is
generated from some mathematical software like Matlab or Maple.
The following commands will generate a sequence of figures, and
save in both eps and png format.
fplot(’sin(x)’,[-2*pi,2*pi]);
title(’y = sin(x)’);
print -depsc f1a.eps
print -dpng f1a.png
fplot(’sin(2*x)’,[-2*pi,2*pi]);
title(’y = sin(2x)’);
print -depsc f1b.eps
print -dpng f1b.png
fplot(’sin(4*x)’,[-2*pi,2*pi]);
title(’y = sin(4x)’);
print -depsc f1c.eps
print -dpng f1c.png

The figures are displayed as overlays on the next page.

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Including
Hyperlinks
Graphics
Making
and Matlab
HandoutsThe Tikz Environment

Graphics with Overlays

ode
for graphics overlays: S. Kersey, Amy Short title
Outline Introduction Getting Started Graphics, Tags and Arrows
Including
Hyperlinks
Graphics
Making
and Matlab
HandoutsThe Tikz Environment

Graphics with Overlays

ode
for graphics overlays: S. Kersey, Amy Short title
Outline Introduction Getting Started Graphics, Tags and Arrows
Including
Hyperlinks
Graphics
Making
and Matlab
HandoutsThe Tikz Environment

Graphics with Overlays

ode
for graphics overlays: S. Kersey, Amy Short title
Outline Introduction Getting Started Graphics, Tags and Arrows
Including
Hyperlinks
Graphics
Making
and Matlab
HandoutsThe Tikz Environment

Graphics with Overlays

Code for graphics overlays:


\includegraphics<1>[height=3 true in]{f1a.png}
\includegraphics<2>[height=3 true in]{f1b.png}
\includegraphics<3>[height=3 true in]{f1c.png}

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Including
Hyperlinks
Graphics
Making
and Matlab
HandoutsThe Tikz Environment

Using PGF/Tikz

A modest attempt at using PGF/TikZ.


Green’s Theorem:
Curl
Divergence
I Z Z
F · ds = ( ∇ × F ) · k dA (1)
∂D D

Boundary of Region
Region

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows
Including
Hyperlinks
Graphics
Making
and Matlab
HandoutsThe Tikz Environment

Using PGF/Tikz – Code


A modest attempt at using PGF/TikZ. \\
Green’s Theorem: \\
\begin{itemize}
\item
Curl \tikz\node[fill=yellow!20,draw,circle] (n4){};
\item
Divergence \tikz\node[fill=green!20,draw,circle] (n2){};
\end{itemize}
\begin{equation}
\oint_{\tikz[baseline]{\node[fill=red!20,anchor=base] (t1) {$\partial D$};}} \,
\tikz[baseline]{\node[fill=green!20,anchor=base] (t2) {$F\cdot ds$};}
\ = \
\int\int_{\tikz[baseline]{\node[fill=blue!20,anchor=base] (t3) {$D$};}} \,(
\tikz[baseline]{\node[fill=yellow!20,anchor=base] (t4) {$\nabla \times F$};})\cdot k \,dA
\end{equation}

\begin{itemize}
\item
Boundary of Region \tikz\node[fill=red!20,draw,circle] (n1){};
\item
Region \tikz\node[fill=blue!20,draw,circle] (n3){};
\end{itemize}
\begin{tikzpicture}[overlay]
\path[->] (n1) edge [out=90, in=-90] (t1);
\path[->] (n2) edge [bend left] (t2);
\path[->] (n3) edge [out=0, in=-90] (t3);
\path[->] (n4) edge [out=0, in=90] (t4);
\end{tikzpicture}

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows Hyperlinks Making Handouts

Hyperlinks

Jump one slide back \hyperlinkslideprev{\beamergotobutton{Jump one slide back}}

Jump one slide forward \hyperlinkslidenext{Jump one slide forward}

Jump to the first slide \hyperlinkpresentationstart{Jump to the first slide}

Jump to the last slide \hyperlinkpresentationend{Jump to the last slide}

Jump to target “outline” \hyperlink{outline}{Jump to the target ‘‘outline’’}


(Also include \hypertarget{outline} at the target frame.)
Jump to Math Dept

S. Kersey, Amy Short title


Outline Introduction Getting Started Graphics, Tags and Arrows Hyperlinks Making Handouts

Handouts

Replace

\documentclass[compress]{beamer}

by

\documentclass[handout,compress]{beamer}
\usetheme{Berlin}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[letterpaper,border shrink=5mm]

Compile and print.

S. Kersey, Amy Short title

Potrebbero piacerti anche