pdf tricks in latex - eng.auburn.edureevesj/classes/elec6970-latex/pdftricks/proj… ·...

28
Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in L A T E X Timmy Sanders Department of Mathematics and Statistics Auburn University July 28, 2010 1 / 28

Upload: others

Post on 14-Aug-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

PDF tricks in LATEX

Timmy SandersDepartment of Mathematics and Statistics

Auburn University

July 28, 2010

1 / 28

Page 2: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

Outline

1 IntroductionOverviewHelpful Links and ExamplesPackages

2 BalloonsOverviewSyntax

3 VideoOverviewSyntax

4 AnimationOverviewSyntax

5 PDFCommentsOverviewSyntax

6 ConclusionQuestions

2 / 28

Page 3: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewHelpful Links and ExamplesPackages

Outline

1 IntroductionOverviewHelpful Links and ExamplesPackages

2 BalloonsOverviewSyntax

3 VideoOverviewSyntax

4 AnimationOverviewSyntax

5 PDFCommentsOverviewSyntax

6 ConclusionQuestions

3 / 28

Page 4: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewHelpful Links and ExamplesPackages

Overview

OverviewThe Portable Document Format (PDF) has many end uses. Most users only consider PDF for static printabledocuments. However, Adobe has integrated many of the multimedia aspects of Flash.

4 / 28

Page 5: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewHelpful Links and ExamplesPackages

Helpful Links

Linkshttp://www.uoregon.edu/˜noeckel/index.html

http://www.ctan.org/tex

http://emacsworld.blogspot.com

5 / 28

Page 6: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewHelpful Links and ExamplesPackages

Examples

Exampleshttp://www.tug.org/texshowcase/#dynamics

http://www.adobe.com/products/acrobat/readermain.html

6 / 28

Page 7: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewHelpful Links and ExamplesPackages

Packages

BasicsThe packages needed to utilize the dynamic features of Portable Document Format (PDF) include:

hyperrefgeometrymovie15animatecooltooltips

7 / 28

Page 8: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Outline

1 IntroductionOverviewHelpful Links and ExamplesPackages

2 BalloonsOverviewSyntax

3 VideoOverviewSyntax

4 AnimationOverviewSyntax

5 PDFCommentsOverviewSyntax

6 ConclusionQuestions

8 / 28

Page 9: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Overview

BasicsThe packages needed to include cooltooltip commands:

cooltooltipshyperref

9 / 28

Page 10: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Overview

OverviewThe package cooltooltips is a macro that allows the developer of PDFs to include different interactive features.There are two commands that initiate cooltooltips:

\cooltooltip

\cooltooltiptoggle

10 / 28

Page 11: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Syntax

Commands\cooltooltip[<popup color>][<link color>]{<subject>}{<message>}{<url>}{<tooltip>}{<text>}

\cooltooltiptoggle{<text>}

11 / 28

Page 12: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Syntax

Syntax for cooltooltippopup color color of box around textlink color color of box around hyperlinksubject subject in popup windowmessage text in popup windowurl hyperlinktooltip text displayed while mouse over linktext text in hyperlink

Syntax for cooltooltiptoggletext text in toggle button

12 / 28

Page 13: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Example

Syntax\cooltooltip[0 0 1]\{Example}\{This is an example of a cool tooltip. Pretty cool, eh?}\{http://www.ctan.org/}{Visit CTAN on the Web}\{This text\strut} is an example.

13 / 28

Page 14: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Outline

1 IntroductionOverviewHelpful Links and ExamplesPackages

2 BalloonsOverviewSyntax

3 VideoOverviewSyntax

4 AnimationOverviewSyntax

5 PDFCommentsOverviewSyntax

6 ConclusionQuestions

14 / 28

Page 15: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Overview

BasicsThe packages needed to include a mp4 or Flash multimedia are:

movie15hyperref

15 / 28

Page 16: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Syntax

SyntaxLATEX processes the syntax for multimedia within the figure environment.

\begin{figure}[h]\includemovie[poster,text={text here}]{cm}{cm}{name of file}\end{figure}

16 / 28

Page 17: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Outline

1 IntroductionOverviewHelpful Links and ExamplesPackages

2 BalloonsOverviewSyntax

3 VideoOverviewSyntax

4 AnimationOverviewSyntax

5 PDFCommentsOverviewSyntax

6 ConclusionQuestions

17 / 28

Page 18: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Overview

BasicsIn a PDF, the movie15 package creates video via frames of image files. Similarly, a PDF can use vector graphics forthe frames to create motion within a document. The packages needed are:

animategraphicx

18 / 28

Page 19: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Syntax

Environment\begin{animateinline}[<options>]{<frame rate>} ... \end{animateinline}

19 / 28

Page 20: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Syntax

Command\animategraphics[<options>]{<frame rate>}{<file basename>}{<first>}{<last>}

20 / 28

Page 21: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Example

SyntaxThis animation is of the function y = exp(x).

\animategraphics[controls, loop,timeline=timeline.txt]{4}{exp_}{0}{8}!

21 / 28

Page 22: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Outline

1 IntroductionOverviewHelpful Links and ExamplesPackages

2 BalloonsOverviewSyntax

3 VideoOverviewSyntax

4 AnimationOverviewSyntax

5 PDFCommentsOverviewSyntax

6 ConclusionQuestions

22 / 28

Page 23: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

OverviewA PDF has several different styles of comments to add various information in a document.

23 / 28

Page 24: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Syntax

Environment\begin{pdfsidelinecomment}[<options>]{<comments>} ... \end{pdfsidelinecomment}

24 / 28

Page 25: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

OverviewSyntax

Syntax

Commands\pdfcomment[<options>]{<comment>}

\pdfmargincomment[<options>]{<comment>}

\pdfmarkup[<options>]{<markup text>}{<comment>}

\pdfsquarecomment[<options>]{<comment>}

\pdfcirclecomment[<options>]{<comment>}

\pdflinecomment[<options>]{<comment>}

25 / 28

Page 26: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

Questions

Outline

1 IntroductionOverviewHelpful Links and ExamplesPackages

2 BalloonsOverviewSyntax

3 VideoOverviewSyntax

4 AnimationOverviewSyntax

5 PDFCommentsOverviewSyntax

6 ConclusionQuestions

26 / 28

Page 27: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

Questions

ConclusionMultimedia is imbedded into a PDF to transform a traditional static document into a dynamical document. Theinteraction of the document and the user, provides the developer the ability to include hyperlinks, popups,descriptions, etc. to enrich the document style.

27 / 28

Page 28: PDF tricks in LaTeX - eng.auburn.edureevesj/Classes/ELEC6970-latex/pdftricks/proj… · Introduction Balloons Video Animation PDFComments Conclusion PDF tricks in LATEX Timmy Sanders

IntroductionBalloons

VideoAnimation

PDFCommentsConclusion

Questions

QUESTIONS?

28 / 28