ppower4 a latex alternative to powerpoint - irstamek.com · 1 ppower4 a latex alternative to...

Post on 11-Nov-2018

229 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

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.

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}

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.

5

What about bitmaps?

JPEG and PNG images can also be included. . .

but remember that bitmap images don’t scale well.

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

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.

8

What we really want is this!

• Good: Platform independent.

8

What we really want is this!

• Good: Platform independent.

• Good: Inherits all of LATEX’ power:

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

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.

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.

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

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

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

10

Stepping thru lists

• You can step thru itemized lists.

10

Stepping thru lists

• You can step thru itemized lists.

• In fact, you can pause . . .

10

Stepping thru lists

• You can step thru itemized lists.

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

10

Stepping thru lists

• You can step thru itemized lists.

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

n∑i=1

i = 1 + 2 + · · ·+ n

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

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)

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)

11

Previous items can be dimmed

• “To be or not to be” —Shakespeare

11

Previous items can be dimmed

• “To be or not to be” —Shakespeare

• ”To do is to be” —Kant

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

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

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

12

Stepping thru pictures

12

Stepping thru pictures

1 2 n

n∑i=1

i

12

Stepping thru pictures

1 2 n

n∑i=1

i

n 2 1

n∑i=1

i

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)

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.

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!

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.

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}

16

Backgrounds and page transitions

• Transitions can be performed between screens . . .

\foilhead{Backgrounds and page transitions}\Dissolve

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.

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.

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}

18

Creating your PDF file

• pdflatex document.tex

18

Creating your PDF file

• pdflatex document.tex

• ppower4 document.pdf presentation.pdf

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

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.

19

Setting the page footer

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

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

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?

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

20

Some tips and techniques

• Use xpdf for development and Acrobat Reader for

presentations.

PPower4 Kjell Post

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

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

21

Open questions

• What are pleasant colors for presentations?

PPower4 Kjell Post

21

Open questions

• What are pleasant colors for presentations?

• Turning off background colors for printing.

PPower4 Kjell Post

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

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

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

top related