Making Powerpoint-like
Presentations with LATEX
Elizabeth Brown
[email protected] Making Powerpoint-like Presentations with LATEX – p.1/21
Overview
Goal: easily make presentation-quality slides
Making Powerpoint-like Presentations with LATEX – p.2/21
Overview
Goal: easily make presentation-quality slides
Options:
Making Powerpoint-like Presentations with LATEX – p.2/21
Overview
Goal: easily make presentation-quality slides
Options:
PowerPoint
Making Powerpoint-like Presentations with LATEX – p.2/21
Overview
Goal: easily make presentation-quality slides
Options:
PowerPoint - what to do about equations?
Making Powerpoint-like Presentations with LATEX – p.2/21
Overview
Goal: easily make presentation-quality slides
Options:
PowerPoint - what to do about equations?
LATEX pdf -several packages will do this
Making Powerpoint-like Presentations with LATEX – p.2/21
Overview
Goal: easily make presentation-quality slides
Options:
PowerPoint - what to do about equations?
LATEX pdf -several packages will do this
pdfslide or P with pdflatex
Making Powerpoint-like Presentations with LATEX – p.2/21
Overview
Goal: easily make presentation-quality slides
Options:
PowerPoint - what to do about equations?
LATEX pdf -several packages will do this
pdfslide or P with pdflatex
prosper - most straight-forward; can
easily convert existing seminar slides
Making Powerpoint-like Presentations with LATEX – p.2/21
Required packages for prosper
LATEX
seminar
Making Powerpoint-like Presentations with LATEX – p.3/21
Required packages for prosper
LATEX
seminar
prosper
Making Powerpoint-like Presentations with LATEX – p.3/21
Required packages for prosper
LATEX
seminar
prosper
hyperref
Making Powerpoint-like Presentations with LATEX – p.3/21
Required packages for prosper
LATEX
seminar
prosper
hyperref
pstricks
Making Powerpoint-like Presentations with LATEX – p.3/21
Required packages for prosper
LATEX
seminar
prosper
hyperref
pstricks
Other
dvips
ps2pdf (ghostscript)
Adobe Acrobat Reader (acroread)
Making Powerpoint-like Presentations with LATEX – p.3/21
\documentclass[ Options ]{prosper} Options:
final
\title{ Title of the presentation } draft
\subtitle{ subtitle } total
\author{ Names of the authors } nototal
\institution{ Affiliation } slideBW
\slideCaption{ caption text } slideColor
colorBG
\begin{document} nocolorBG
\maketitle ps
pdf
\begin{slide} [transition] { slide title } noaccumulate
Material for the slide accumulate
\end{slide} azure
... lignesbleues
contemporain
nuancegris
\overlays{n }{ troispoints
\begin{slide} [transition] { slide title } frames
...
Material for the slide
\end{slide} Legend
}
Mandatory or default choice
Optional
\end{document}
Making Powerpoint-like Presentations with LATEX – p.4/21
slides
In seminar slides are constructed using
\begin{slide}
slide contents here
\end{slide}
Since prosper uses seminar, slides are built the
same way. However, now we include a title.
\begin{slide}{title}
slide contents here
\end{slide}
If the title is left out the letter s will become the
title.
Making Powerpoint-like Presentations with LATEX – p.5/21
l
ike this
\begin{slide}[Glitter]
like this
\end{slide}
Making Powerpoint-like Presentations with LATEX – p.6/21
For no title, use
\begin{slide}[Dissolve]{}
For no title, use
\end{slide}
Making Powerpoint-like Presentations with LATEX – p.7/21
Transitions
Split: two lines sweep across the screen
Blinds: multiple lines appear and
synchronously sweep in the same direction
Box: a box sweeps from the center
Wipe: a single line sweeps across the screen
from one edge to the other
Dissolve: the old page image dissolves
Glitter: similar to Dissolve, except the
effect sweeps across the image
Replace: the effect is simply to replace the
Making Powerpoint-like Presentations with LATEX – p.8/21
old page with the new page.
Overlays
With overlays, you can
incrementally add items to a page
Making Powerpoint-like Presentations with LATEX – p.9/21
Overlays
With overlays, you can
incrementally add items to a page
replace text or images on a slide in a smooth
transition
Making Powerpoint-like Presentations with LATEX – p.9/21
Overlays
With overlays, you can
incrementally add items to a page
replace text or images on a slide in a smooth
transition
How it works
each overlay treated as separate page
Making Powerpoint-like Presentations with LATEX – p.9/21
Overlays
With overlays, you can
incrementally add items to a page
replace text or images on a slide in a smooth
transition
How it works
each overlay treated as separate page
material is properly alligned from page to
page to create illusion of adding material to
slide
Making Powerpoint-like Presentations with LATEX – p.9/21
Overlays
With overlays, you can
incrementally add items to a page
replace text or images on a slide in a smooth
transition
How it works
each overlay treated as separate page
material is properly alligned from page to
page to create illusion of adding material to
slide
indexed as only one slide Making Powerpoint-like Presentations with LATEX – p.9/21
Overlay commands
Every slide with overlays must be preceded by
\overlays{n} and enclosed in brackets
\overlays{2}{
\begin{slide}
contents of slide
\end{slide}
}
Making Powerpoint-like Presentations with LATEX – p.10/21
Overlay commands, cont.
\fromSlide{p}{mat}. Puts mat on slides
p through n;
\onlySlide{p}{mat}. Puts mat on slide p
only;
\untilSlide{p}{mat}. Puts mat on slides
1 through p;
Making Powerpoint-like Presentations with LATEX – p.11/21
Overlay commands, cont.
\fromSlide{p}{mat}. Puts mat on slides
p through n;
\onlySlide{p}{mat}. Puts mat on slide p
only;
\untilSlide{p}{mat}. Puts mat on slides
1 through p;
\FromSlide{p}. All the material following
this statement will be put on slides p through
n;
\OnlySlide{p}. All the material following
this statement be put on slide p only;
Making Powerpoint-like Presentations with LATEX – p.11/21
Overlay commands, cont.
\fromSlide*{p}{mat} Puts mat on slides
p through n;
\onlySlide*{p}{mat}. Puts mat on slide
p only;
\untilSlide*{p}{mat}. Puts mat on
slides 1 through p;
Adding an to these commands causes the ma-
terial to be replaced by the material on the next
overlay.
Making Powerpoint-like Presentations with LATEX – p.12/21
Text overlay – no replacement
one
\overlays { 4 }{ \overlays { 4 }{
\begin {slide}{Text overlay – no replace- \begin {slide}{Text overlay – no replace-
ment} ment}
\begin{itemstep} \begin{itemize}
\item one \item one
\item two \FromSlide2 \item two
\item three \FromSlide3 \item three
\item four \FromSlide4 \item four
\end {itemstep} \end {itemize}
\end {slide}} \end {slide}} Making Powerpoint-like Presentations with LATEX – p.13/21
Text overlay – no replacement
one
two
\overlays { 4 }{ \overlays { 4 }{
\begin {slide}{Text overlay – no replace- \begin {slide}{Text overlay – no replace-
ment} ment}
\begin{itemstep} \begin{itemize}
\item one \item one
\item two \FromSlide2 \item two
\item three \FromSlide3 \item three
\item four \FromSlide4 \item four
\end {itemstep} \end {itemize}
\end {slide}} \end {slide}} Making Powerpoint-like Presentations with LATEX – p.13/21
Text overlay – no replacement
one
two
three
\overlays { 4 }{ \overlays { 4 }{
\begin {slide}{Text overlay – no replace- \begin {slide}{Text overlay – no replace-
ment} ment}
\begin{itemstep} \begin{itemize}
\item one \item one
\item two \FromSlide2 \item two
\item three \FromSlide3 \item three
\item four \FromSlide4 \item four
\end {itemstep} \end {itemize}
\end {slide}} \end {slide}} Making Powerpoint-like Presentations with LATEX – p.13/21
Text overlay – no replacement
one
two
three
four
\overlays { 4 }{ \overlays { 4 }{
\begin {slide}{Text overlay – no replace- \begin {slide}{Text overlay – no replace-
ment} ment}
\begin{itemstep} \begin{itemize}
\item one \item one
\item two \FromSlide2 \item two
\item three \FromSlide3 \item three
\item four \FromSlide4 \item four
\end {itemstep} \end {itemize}
\end {slide}} \end {slide}} Making Powerpoint-like Presentations with LATEX – p.13/21
Plot overlay example
Making Powerpoint-like Presentations with LATEX – p.14/21
Plot overlay example
Making Powerpoint-like Presentations with LATEX – p.14/21
Plot overlay example
Rejection region
Making Powerpoint-like Presentations with LATEX – p.14/21
code
hyperref package
Use this package to creat links to help you move
around the document and load webpages
href URL text creates a link to a web page
hypertarget name text creates a target for a
link in your document
hyperlink name creates a link to a place in
text
the presentation defined by \hypertarget
Making Powerpoint-like Presentations with LATEX – p.15/21
hyperref examples
Examples:
Department homepage
\href{http://www.biostat.harvard.edu/}
{{\green Department homepage}}
open applications
citations
a book I’m reading [?]
Making Powerpoint-like Presentations with LATEX – p.16/21
Making the presentation file
Making Powerpoint-like Presentations with LATEX – p.17/21
More advanced topics
creating your own background
Making Powerpoint-like Presentations with LATEX – p.18/21
Helpful links
Webpage for this talk –
http://biosun1.harvard.edu/ ebrown/cwg6-6-
01.html
Making Powerpoint-like Presentations with LATEX – p.19/21
Go Back
Making Powerpoint-like Presentations with LATEX – p.20/21
code
\overlays{3}{
\begin{slide}{Plot overlay example}
\begin{center}
\onlySlide*{1}{
mfpic commands}
\onlySlide*{2}{
mfpic commands}
\onlySlide*{3}{
\begin{mfpic}[50][300]{-3.2}{3.2}{0}{.5}
\pen{5pt}
\axes
\function{-3,3,0.1}{1/2/sqrt(pi)*exp(-.5*x*x)}
\lines{(-3,0),(3,0)}
\pen{2pt} \drawcolor{blue} \headcolor{blue}
\gfill\btwnfcn{1.5,3,0.1}{1/sqrt(2*pi)*exp(-.5*x*x)}{0*x}
\arrow[l10]
\rotatepath{(1.7,.025),-120}\lines{(2.5,.02),(1.7,.025)}
\tlabel(0,-.12){\blue Rejection region}
\end{mfpic}} \end{center} \end{slide} }
Making Powerpoint-like Presentations with LATEX – p.21/21
back