55
1 PPower4 AL A T E X Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2 A small Foil T E X example 3 Including pictures 4 Color 5 PPower4—a post-processor for pdflatex 6 Stepping thru lists 7 Stepping thru pictures 8 Multimedia and external applications 9 Using links 10 Backgrounds and page transitions 11 A template for PPower4 presentations 12 Creating your PDF document 13 Setting the page footer 14 Some tips and techniques 15 Open questions

PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

Embed Size (px)

Citation preview

Page 1: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

1

PPower4A LATEX Alternative to Powerpoint

Kjell Post

Table of Contents

1 Using the Acrobat Reader for presentations

2 A small FoilTEX example

3 Including pictures

4 Color

5 PPower4—a post-processor for pdflatex

6 Stepping thru lists

7 Stepping thru pictures

8 Multimedia and external applications

9 Using links

10 Backgrounds and page transitions

11 A template for PPower4 presentations

12 Creating your PDF document

13 Setting the page footer

14 Some tips and techniques

15 Open questions

Page 2: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

2

Using the Acrobat Reader for presentations

• Easy solution:

1. Use FoilTEX (or any other slide package).

FoilTEX uses a larger font, allows for landscape mode, slide

titles, etc, and is very easy to use.

2. Use pdflatex to produce a pdf-file.

pdflatex works just like LATEX, but produces a pdf-file.

3. View the pdf-file in Acrobat Reader, fullscreen mode.

Page 3: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

3

A small FoilTEX example

\documentclass[30pt,landscape]{foils}\usepackage[pdftex]{geometry}\geometry{headsep=3ex,hscale=0.9}\begin{document}\foilhead{Top 3 reasons to emigrate}\begin{enumerate}\item Rosengren\item Sahlin\item Winberg\end{enumerate}\end{document}

Page 4: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

4

Including pictures

PDF files can be included “as is”.

\usepackage[pdftex]{graphicx}

\includegraphics{mdh.pdf}

Postscript files must be converted, using e.g. epstopdf.

I’ll describe METAPOST later.

Page 5: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

5

What about bitmaps?

JPEG and PNG images can also be included. . .

but remember that bitmap images don’t scale well.

Page 6: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

6

Color

• The color package is the preferred way to use colors.

• New colors are defined in RGB or CMY, for instance:

\definecolor{chocolate}{rgb}{0.82,0.41,0.12}

• Text can be set in a certain color,

\textcolor{chocolate}{$\phi = {(1+\sqrt{5}) \over 2}$}

which comes out as φ = (1+√

5)2

Page 7: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

7

Pros and cons

• Good: Platform independent.

• Good: Inherits all of LATEX’ power:

– Typesetting of mathematical formulæs:

limn→∞

n∑i=1

1i2

=π2

6

– Automatic referencing, command definitions, etc.

• But: Not as exciting as e.g. Powerpoint.

Page 8: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

8

What we really want is this!

• Good: Platform independent.

Page 9: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

8

What we really want is this!

• Good: Platform independent.

• Good: Inherits all of LATEX’ power:

Page 10: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

8

What we really want is this!

• Good: Platform independent.

• Good: Inherits all of LATEX’ power:

– Typesetting of mathematical formulæs:

limn→∞

n∑i=1

1i2

=π2

6

Page 11: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

8

What we really want is this!

• Good: Platform independent.

• Good: Inherits all of LATEX’ power:

– Typesetting of mathematical formulæs:

limn→∞

n∑i=1

1i2

=π2

6

– Automatic referencing, command definitions, etc.

Page 12: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

8

What we really want is this!

• Good: Platform independent.

• Good: Inherits all of LATEX’ power:

– Typesetting of mathematical formulæs:

limn→∞

n∑i=1

1i2

=π2

6

– Automatic referencing, command definitions, etc.

• And: Just as exciting as e.g. Powerpoint.

Page 13: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

9

PPower4–a post-processor for pdflatex

...\foilhead{Top 3 reasons to emigrate}\begin{enumerate}\item Rosengren \pause\item Sahlin \pause\item Winberg \pause\end{enumerate}

...

document.texdocument.tex

pdflatexpdflatex

PPower4PPower4

AcrobatAcrobat

Page 14: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

9

PPower4–a post-processor for pdflatex

...\foilhead{Top 3 reasons to emigrate}\begin{enumerate}\item Rosengren \pause\item Sahlin \pause\item Winberg \pause\end{enumerate}

...

document.texdocument.tex

pdflatexpdflatex

PPower4PPower4

AcrobatAcrobat

Page 15: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

9

PPower4–a post-processor for pdflatex

...\foilhead{Top 3 reasons to emigrate}\begin{enumerate}\item Rosengren \pause\item Sahlin \pause\item Winberg \pause\end{enumerate}

...

document.texdocument.tex

pdflatexpdflatex

PPower4PPower4

AcrobatAcrobat

Page 16: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

10

Stepping thru lists

• You can step thru itemized lists.

Page 17: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

10

Stepping thru lists

• You can step thru itemized lists.

• In fact, you can pause . . .

Page 18: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

10

Stepping thru lists

• You can step thru itemized lists.

• In fact, you can pause . . . almost anywhere!

Page 19: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

10

Stepping thru lists

• You can step thru itemized lists.

• In fact, you can pause . . . almost anywhere!

n∑i=1

i = 1 + 2 + · · ·+ n

Page 20: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

10

Stepping thru lists

• You can step thru itemized lists.

• In fact, you can pause . . . almost anywhere!

n∑i=1

i = 1 + 2 + · · ·+ n

= n+ · · ·+ 2 + 1

Page 21: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

10

Stepping thru lists

• You can step thru itemized lists.

• In fact, you can pause . . . almost anywhere!

n∑i=1

i = 1 + 2 + · · ·+ n

= n+ · · ·+ 2 + 1

2n∑i=1

i = (n+ 1) + · · ·+ (n+ 1)

Page 22: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

10

Stepping thru lists

• You can step thru itemized lists.

• In fact, you can pause . . . almost anywhere!

n∑i=1

i = 1 + 2 + · · ·+ n

= n+ · · ·+ 2 + 1

2n∑i=1

i = (n+ 1) + · · ·+ (n+ 1) = n(n+ 1)

Page 23: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

11

Previous items can be dimmed

• “To be or not to be” —Shakespeare

Page 24: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

11

Previous items can be dimmed

• “To be or not to be” —Shakespeare

• ”To do is to be” —Kant

Page 25: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

11

Previous items can be dimmed

• “To be or not to be” —Shakespeare

• ”To do is to be” —Kant

• ”To be is to do” —Sartre

Page 26: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

11

Previous items can be dimmed

• “To be or not to be” —Shakespeare

• ”To do is to be” —Kant

• ”To be is to do” —Sartre

• ”Do be do be do” —Sinatra

Page 27: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

11

Previous items can be dimmed

• “To be or not to be” —Shakespeare

• ”To do is to be” —Kant

• ”To be is to do” —Sartre

• ”Do be do be do” —Sinatra

• ”Yabba dabba do!” —Flintstone

Page 28: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

12

Stepping thru pictures

Page 29: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

12

Stepping thru pictures

1 2 n

n∑i=1

i

Page 30: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

12

Stepping thru pictures

1 2 n

n∑i=1

i

n 2 1

n∑i=1

i

Page 31: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

12

Stepping thru pictures

1 2 n

n∑i=1

i

n 2 1

n∑i=1

i

n

n+ 1

1 2 n

2n∑i=1

i = n(n+ 1)

Page 32: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

13

Using links

You can define a label on a page with

\toptarget{toc}

and then later reference on another page with

\toplink{toc}{Table of Contents}

which will be shown as Table of Contents.

As usual with references, you have to run LATEX twice.

Page 33: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

14

Multimedia and external applications

Movies and other scripts can be invoked using

\href{run:}{filename}{title}

It’s Bill Gates’ birthday today—give him a cake!

Page 34: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

14

Multimedia and external applications

Movies and other scripts can be invoked using

\href{run:}{filename}{title}

It’s Bill Gates’ birthday today—give him a cake!

Calling applications is however more platform dependent.

Page 35: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

15

Backgrounds and page transitions

• Backgrounds can have a solid color or a gradient.

pagecolor{color} solid color

vpagecolor[color 1]{color 2} vertical gradient

hpagecolor[color 1]{color 2} horizontal gradient

• On this page I have chosen the romantic sunset motif.

\definecolor{bgblue}{rgb}{0.4,0.6,1.0}\definecolor{bgred}{rgb}{1.0,0.6,0.4}\vpagecolor[bgred]{bgblue}

Page 36: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

16

Backgrounds and page transitions

• Transitions can be performed between screens . . .

\foilhead{Backgrounds and page transitions}\Dissolve

Page 37: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

16

Backgrounds and page transitions

• Transitions can be performed between screens . . .

\foilhead{Backgrounds and page transitions}\Dissolve

• . . . or with text by using special \pause-commands.

Page 38: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

16

Backgrounds and page transitions

• Transitions can be performed between screens . . .

\foilhead{Backgrounds and page transitions}\Dissolve

• . . . or with text by using special \pause-commands.

• Consult extension.pdf on the PPower4-page for

details.

Page 39: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

17

A template for PPower4 presentations

\documentclass[30pt,landscape]{foils}\usepackage[pdftex]{geometry}\geometry{headsep=3ex,hscale=0.9}\usepackage{hyperref}\usepackage[pdftex]{color}\usepackage{pause}\usepackage{background}\usepackage{pp4slide}\usepackage[pdftex]{graphicx} % if you want to include pictures\begin{document}\vpagecolor{blue}\foilhead{Top 3 reasons to emigrate}\begin{enumerate}\item Rosengren \pause\item Sahlin \pause\item Winberg\end{enumerate}\end{document}

Page 40: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

18

Creating your PDF file

• pdflatex document.tex

Page 41: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

18

Creating your PDF file

• pdflatex document.tex

• ppower4 document.pdf presentation.pdf

Page 42: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

18

Creating your PDF file

• pdflatex document.tex

• ppower4 document.pdf presentation.pdf

• If you want to generate handouts

– Look at the Makefile on

http://www.idt.mdh.se/~kpt/ppower4

Page 43: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

18

Creating your PDF file

• pdflatex document.tex

• ppower4 document.pdf presentation.pdf

• If you want to generate handouts

– Look at the Makefile on

http://www.idt.mdh.se/~kpt/ppower4

– You probably want to redefine colors before printing.

Page 44: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

19

Setting the page footer

• Use \MyLogo{text} to set the footer.

Page 45: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

19

Setting the page footer

• Use \MyLogo{text} to set the footer.

• Example (used on this page):

\MyLogo{{\sf PPower4} \hfill Kjell Post \hfill\includegraphics[scale=0.25]{mdh.pdf}}

Page 46: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

19

Setting the page footer

• Use \MyLogo{text} to set the footer.

• Example (used on this page):

\MyLogo{{\sf PPower4} \hfill Kjell Post \hfill\includegraphics[scale=0.25]{mdh.pdf}}

• Why doesn’t the footer appear immediately?

Page 47: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

19

Setting the page footer

• Use \MyLogo{text} to set the footer.

• Example (used on this page):

\MyLogo{{\sf PPower4} \hfill Kjell Post \hfill\includegraphics[scale=0.25]{mdh.pdf}}

• Why doesn’t the footer appear immediately?

• You need a \pause before the next page and. . .

\MyLogo{\pauselevel{=1} ... }

PPower4 Kjell Post

Page 48: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

20

Some tips and techniques

• Use xpdf for development and Acrobat Reader for

presentations.

PPower4 Kjell Post

Page 49: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

20

Some tips and techniques

• Use xpdf for development and Acrobat Reader for

presentations.

• xpdf doesn’t handle transitions but . . .

• xpdf can reload the current PDF file—press ’r’.

PPower4 Kjell Post

Page 50: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

20

Some tips and techniques

• Use xpdf for development and Acrobat Reader for

presentations.

• xpdf doesn’t handle transitions but . . .

• xpdf can reload the current PDF file—press ’r’.

• In Acrobat Reader, set “advance on any click” in Full

screen options if you want to use a cordless mouse.

PPower4 Kjell Post

Page 51: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

21

Open questions

• What are pleasant colors for presentations?

PPower4 Kjell Post

Page 52: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

21

Open questions

• What are pleasant colors for presentations?

• Turning off background colors for printing.

PPower4 Kjell Post

Page 53: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

21

Open questions

• What are pleasant colors for presentations?

• Turning off background colors for printing.

• Turning off the \pause command for printing?

PPower4 Kjell Post

Page 54: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

21

Open questions

• What are pleasant colors for presentations?

• Turning off background colors for printing.

• Turning off the \pause command for printing?

\let\pause=\relax doesn’t always work.

PPower4 Kjell Post

Page 55: PPower4 A LATEX Alternative to Powerpoint - irstamek.com · 1 PPower4 A LATEX Alternative to Powerpoint Kjell Post Table of Contents 1 Using the Acrobat Reader for presentations 2

21

Open questions

• What are pleasant colors for presentations?

• Turning off background colors for printing.

• Turning off the \pause command for printing?

\let\pause=\relax doesn’t always work.

• Using the mouse to go backwards?

PPower4 Kjell Post