41
Making Powerpoint-like Presentations with L A T E X Elizabeth Brown [email protected] Making Powerpoint-likePresentations with LAT E X – p.1/21

Making Powerpoint-like Presentations with LATEX

  • Upload
    vothu

  • View
    216

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Making Powerpoint-like Presentations with LATEX

Making Powerpoint-likePresentations with LATEX

Elizabeth Brown

[email protected]

Making Powerpoint-like Presentations with LATEX – p.1/21

Page 2: Making Powerpoint-like Presentations with LATEX

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 pdflatexprosper - most straight-forward; caneasily convert existing seminar slides

Making Powerpoint-like Presentations with LATEX – p.2/21

Page 3: Making Powerpoint-like Presentations with LATEX

Overview

Goal: easily make presentation-quality slidesOptions:

PowerPoint - what to do about equations?

LATEX pdf -several packages will do this

pdfslide or P with pdflatexprosper - most straight-forward; caneasily convert existing seminar slides

Making Powerpoint-like Presentations with LATEX – p.2/21

Page 4: Making Powerpoint-like Presentations with LATEX

Overview

Goal: easily make presentation-quality slidesOptions:

PowerPoint

- what to do about equations?

LATEX pdf -several packages will do this

pdfslide or P with pdflatexprosper - most straight-forward; caneasily convert existing seminar slides

Making Powerpoint-like Presentations with LATEX – p.2/21

Page 5: Making Powerpoint-like Presentations with LATEX

Overview

Goal: easily make presentation-quality slidesOptions:

PowerPoint - what to do about equations?

LATEX pdf -several packages will do this

pdfslide or P with pdflatexprosper - most straight-forward; caneasily convert existing seminar slides

Making Powerpoint-like Presentations with LATEX – p.2/21

Page 6: Making Powerpoint-like Presentations with LATEX

Overview

Goal: easily make presentation-quality slidesOptions:

PowerPoint - what to do about equations?

LATEX pdf -several packages will do this

pdfslide or P with pdflatexprosper - most straight-forward; caneasily convert existing seminar slides

Making Powerpoint-like Presentations with LATEX – p.2/21

Page 7: Making Powerpoint-like Presentations with LATEX

Overview

Goal: easily make presentation-quality slidesOptions:

PowerPoint - what to do about equations?

LATEX pdf -several packages will do this

pdfslide or P with pdflatex

prosper - most straight-forward; caneasily convert existing seminar slides

Making Powerpoint-like Presentations with LATEX – p.2/21

Page 8: Making Powerpoint-like Presentations with LATEX

Overview

Goal: easily make presentation-quality slidesOptions:

PowerPoint - what to do about equations?

LATEX pdf -several packages will do this

pdfslide or P with pdflatexprosper - most straight-forward; caneasily convert existing seminar slides

Making Powerpoint-like Presentations with LATEX – p.2/21

Page 9: Making Powerpoint-like Presentations with LATEX

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

Page 10: Making Powerpoint-like Presentations with LATEX

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

Page 11: Making Powerpoint-like Presentations with LATEX

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

Page 12: Making Powerpoint-like Presentations with LATEX

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

Page 13: Making Powerpoint-like Presentations with LATEX

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

Page 14: Making Powerpoint-like Presentations with LATEX

\end{slide}Material for the slide

\begin{slide} [transition] { slide title }

LegendMandatory or default choiceOptional

azure

contemporainnuancegristroispointsframes

lignesbleues

...

\maketitle

Affiliation

\begin{document}

subtitle

...

Title of the presentation

Options\documentclass[ ]{prosper}

\title{ }

Names of the authors\author{ }\institution{ }

caption text\slideCaption{ }

Options:finaldraft

totalnototal

colorBGnocolorBG

slideBWslideColor

pspdf

\end{document}

\end{slide}Material for the slide

\begin{slide} [transition] { slide title }

\subtitle{ }

}

n\overlays{ }{

accumulatenoaccumulate

Making Powerpoint-like Presentations with LATEX – p.4/21

Page 15: Making Powerpoint-like Presentations with LATEX

slides

In seminar slides are constructed using\begin{slide}slide contents here\end{slide}Since prosper uses seminar, slides are built thesame 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

Page 16: Making Powerpoint-like Presentations with LATEX

l

ike this\begin{slide}[Glitter]like this\end{slide}

Making Powerpoint-like Presentations with LATEX – p.6/21

Page 17: Making Powerpoint-like Presentations with LATEX

For no title, use\begin{slide}[Dissolve]{}For no title, use\end{slide}

Making Powerpoint-like Presentations with LATEX – p.7/21

Page 18: Making Powerpoint-like Presentations with LATEX

Transitions

Split: two lines sweep across the screen

Blinds: multiple lines appear andsynchronously sweep in the same direction

Box: a box sweeps from the center

Wipe: a single line sweeps across the screenfrom one edge to the other

Dissolve: the old page image dissolves

Glitter: similar to Dissolve, except theeffect sweeps across the image

Replace: the effect is simply to replace theold page with the new page.

Making Powerpoint-like Presentations with LATEX – p.8/21

Page 19: Making Powerpoint-like Presentations with LATEX

Overlays

With overlays, you can

incrementally add items to a page

replace text or images on a slide in a smoothtransition

How it works

each overlay treated as separate page

material is properly alligned from page topage to create illusion of adding material toslide

indexed as only one slide

Making Powerpoint-like Presentations with LATEX – p.9/21

Page 20: Making Powerpoint-like Presentations with LATEX

Overlays

With overlays, you can

incrementally add items to a page

replace text or images on a slide in a smoothtransition

How it works

each overlay treated as separate page

material is properly alligned from page topage to create illusion of adding material toslide

indexed as only one slide

Making Powerpoint-like Presentations with LATEX – p.9/21

Page 21: Making Powerpoint-like Presentations with LATEX

Overlays

With overlays, you can

incrementally add items to a page

replace text or images on a slide in a smoothtransition

How it works

each overlay treated as separate page

material is properly alligned from page topage to create illusion of adding material toslide

indexed as only one slide

Making Powerpoint-like Presentations with LATEX – p.9/21

Page 22: Making Powerpoint-like Presentations with LATEX

Overlays

With overlays, you can

incrementally add items to a page

replace text or images on a slide in a smoothtransition

How it works

each overlay treated as separate page

material is properly alligned from page topage to create illusion of adding material toslide

indexed as only one slide

Making Powerpoint-like Presentations with LATEX – p.9/21

Page 23: Making Powerpoint-like Presentations with LATEX

Overlays

With overlays, you can

incrementally add items to a page

replace text or images on a slide in a smoothtransition

How it works

each overlay treated as separate page

material is properly alligned from page topage to create illusion of adding material toslide

indexed as only one slideMaking Powerpoint-like Presentations with LATEX – p.9/21

Page 24: Making Powerpoint-like Presentations with LATEX

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

Page 25: Making Powerpoint-like Presentations with LATEX

Overlay commands, cont.

\fromSlide{p}{mat}. Puts mat on slidesp through n;

\onlySlide{p}{mat}. Puts mat on slide ponly;

\untilSlide{p}{mat}. Puts mat on slides1 through p;

\FromSlide{p}. All the material followingthis statement will be put on slides p throughn;

\OnlySlide{p}. All the material followingthis statement be put on slide p only;

\UntilSlide{p}. All the material followingthis statement will be put on slides 1 throughp.

Making Powerpoint-like Presentations with LATEX – p.11/21

Page 26: Making Powerpoint-like Presentations with LATEX

Overlay commands, cont.

\fromSlide{p}{mat}. Puts mat on slidesp through n;

\onlySlide{p}{mat}. Puts mat on slide ponly;

\untilSlide{p}{mat}. Puts mat on slides1 through p;

\FromSlide{p}. All the material followingthis statement will be put on slides p throughn;

\OnlySlide{p}. All the material followingthis statement be put on slide p only;

\UntilSlide{p}. All the material followingthis statement will be put on slides 1 throughp.

Making Powerpoint-like Presentations with LATEX – p.11/21

Page 27: Making Powerpoint-like Presentations with LATEX

Overlay commands, cont.

\fromSlide*{p}{mat} Puts mat on slidesp through n;

\onlySlide*{p}{mat}. Puts mat on slidep only;

\untilSlide*{p}{mat}. Puts mat onslides 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

Page 28: Making Powerpoint-like Presentations with LATEX

Text overlay – no replacement

one

two

three

four

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemstep}\item one\item two\item three\item four\end {itemstep}\end {slide}}

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemize}\item one\FromSlide2 \item two\FromSlide3 \item three\FromSlide4 \item four\end {itemize}\end {slide}}

Making Powerpoint-like Presentations with LATEX – p.13/21

Page 29: Making Powerpoint-like Presentations with LATEX

Text overlay – no replacement

one

two

three

four

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemstep}\item one\item two\item three\item four\end {itemstep}\end {slide}}

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemize}\item one\FromSlide2 \item two\FromSlide3 \item three\FromSlide4 \item four\end {itemize}\end {slide}}

Making Powerpoint-like Presentations with LATEX – p.13/21

Page 30: Making Powerpoint-like Presentations with LATEX

Text overlay – no replacement

one

two

three

four

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemstep}\item one\item two\item three\item four\end {itemstep}\end {slide}}

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemize}\item one\FromSlide2 \item two\FromSlide3 \item three\FromSlide4 \item four\end {itemize}\end {slide}}

Making Powerpoint-like Presentations with LATEX – p.13/21

Page 31: Making Powerpoint-like Presentations with LATEX

Text overlay – no replacement

one

two

three

four

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemstep}\item one\item two\item three\item four\end {itemstep}\end {slide}}

\overlays { 4 }{\begin {slide}{Text overlay – no replace-ment}\begin{itemize}\item one\FromSlide2 \item two\FromSlide3 \item three\FromSlide4 \item four\end {itemize}\end {slide}}

Making Powerpoint-like Presentations with LATEX – p.13/21

Page 32: Making Powerpoint-like Presentations with LATEX

Plot overlay example

Making Powerpoint-like Presentations with LATEX – p.14/21

Page 33: Making Powerpoint-like Presentations with LATEX

Plot overlay example

Making Powerpoint-like Presentations with LATEX – p.14/21

Page 34: Making Powerpoint-like Presentations with LATEX

Plot overlay example

Rejection region

codeMaking Powerpoint-like Presentations with LATEX – p.14/21

Page 35: Making Powerpoint-like Presentations with LATEX

hyperref package

Use this package to creat links to help you movearound the document and load webpages

href URL text creates a link to a web page

hypertarget name text creates a target for alink in your document

hyperlink name text creates a link to a place inthe presentation defined by \hypertarget

Making Powerpoint-like Presentations with LATEX – p.15/21

Page 36: Making Powerpoint-like Presentations with LATEX

hyperref examples

Examples:Department homepage

\href{http://www.biostat.harvard.edu/}

{{\green Department homepage}}

open applications

citationsa book I’m reading [?]

Making Powerpoint-like Presentations with LATEX – p.16/21

Page 37: Making Powerpoint-like Presentations with LATEX

Making the presentation file

Making Powerpoint-like Presentations with LATEX – p.17/21

Page 38: Making Powerpoint-like Presentations with LATEX

More advanced topics

creating your own background

Making Powerpoint-like Presentations with LATEX – p.18/21

Page 39: Making Powerpoint-like Presentations with LATEX

Helpful links

Webpage for this talk –

http://biosun1.harvard.edu/ ebrown/cwg6-6-

01.html

Making Powerpoint-like Presentations with LATEX – p.19/21

Page 40: Making Powerpoint-like Presentations with LATEX

Go Back

Making Powerpoint-like Presentations with LATEX – p.20/21

Page 41: Making Powerpoint-like Presentations with LATEX

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} }

backMaking Powerpoint-like Presentations with LATEX – p.21/21