introduction to beamer and graphics on latex - uakron.edumath.uakron.edu/~cossey/may 27th...

93
Introduction to Beamer Pictures in LaTeX Animating graphics Homework Introduction to Beamer and Graphics on LaTeX JP Cossey University of Akron Research Methods in Mathematics May 27, 2009 JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Upload: duongnga

Post on 16-Apr-2018

248 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Introduction to Beamer and Graphics on LaTeX

JP CosseyUniversity of Akron

Research Methods in Mathematics

May 27, 2009

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 2: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

What is Beamer?

Beamer is a version of LaTeX that allows you to makepowerpoint-style presentations using standard LaTeX coding, witha few extra tweaks.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 3: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

What is Beamer?

Beamer is a version of LaTeX that allows you to makepowerpoint-style presentations using standard LaTeX coding, witha few extra tweaks.

Obviously what you’re looking at now was done in Beamer.Beamer outputs .pdf files that are displayed by, for instance, AdobeReader.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 4: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

How do I get my hands on Beamer?

Beamer can be downloaded for free at:

http://latex-beamer.sourceforge.net/

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 5: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

How do I get my hands on Beamer?

Beamer can be downloaded for free at:

http://latex-beamer.sourceforge.net/

The directions linked on that page walk you through downloadingand installing beamer in a relatively painless way. (If I can do it,you can do it, I promise.)

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 6: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Can I just steal your files?

Sure, feel free. The LaTeX code for this presentation is availableon my webpage at:

http://www.math.uakron.edu/ cossey (look in the “teaching”section)

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 7: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Can I just steal your files?

Sure, feel free. The LaTeX code for this presentation is availableon my webpage at:

http://www.math.uakron.edu/ cossey (look in the “teaching”section)

And these slides are available at that page as well.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 8: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

When should I use Beamer?

When in my math career could/should I use Beamer?

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 9: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

When should I use Beamer?

When in my math career could/should I use Beamer?

I “chalk talk” versus Beamer

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 10: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

When should I use Beamer?

When in my math career could/should I use Beamer?

I “chalk talk” versus Beamer

I Time constraints?

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 11: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

When should I use Beamer?

When in my math career could/should I use Beamer?

I “chalk talk” versus Beamer

I Time constraints?

I Pictures?

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 12: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

When should I use Beamer?

When in my math career could/should I use Beamer?

I “chalk talk” versus Beamer

I Time constraints?

I Pictures?

I Culture

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 13: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Getting started

Be sure you begin the file with\documentclass{beamer}

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 14: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

How are you making these slides?

Each slide, or “frame”, begins with the command

\frame{and ends with

}

In between the brackets is everything you want on that particularslide.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 15: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

How are you making these slides?

Each slide, or “frame”, begins with the command

\frame{and ends with

}

In between the brackets is everything you want on that particularslide.

You can give frames titles with the command\frametitle{Put your title here}

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 16: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

For instance

The commands to make the next slide are:

\frame{

\frametitle{Zippy is great...}

...but Bucky the Badger rules!

}

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 17: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Zippy is great...

...but Bucky the Badger rules!

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 18: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

The title page

The command

\frame{titlepage}

at the beginning of your file (right after \begin{document} )tells Beamer to set up your title page.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 19: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

The title page

The command

\frame{titlepage}

at the beginning of your file (right after \begin{document} )tells Beamer to set up your title page.

Before the \frame{titlepage}command, you could/should have things like:\title{...}\author{...}\institution{...}\date{...}

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 20: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Sections and subsections

Notice the cool little section and subsection names at the top?This is really easy to do. You simply begin a section with thecommand

\section{section name }

and every frame after that command is included in that section.Similarly with subsections. These are automatically placed at thetop of every slide, or perhaps somewhere else, depending on thebeamer “theme” you’re using.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 21: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Beamer themes

There are different beamer “themes” available. The theme for thispresentation is called “split”, meaning in the header of this file Ihave the command\usepackage{beamerthemesplit}.Here is a talk I made using the theme “berlin”, i.e.\usepackage{beamerthemeberlin}.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 22: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Color schemes

I’m currently using the default color them for beamer. But thereare other color packages available, such as\usecolortheme{beaver},which is the one you saw in the other presentation.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 23: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Color schemes

I’m currently using the default color them for beamer. But thereare other color packages available, such as\usecolortheme{beaver},which is the one you saw in the other presentation.

Most beamer packages come with all sorts of available colorschemes and themes, and others can be downloaded.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 24: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Animating text

The “pause” command allows you to reveal text one line at a time.For instance, the command for the next slide is:

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 25: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Animating text

The “pause” command allows you to reveal text one line at a time.For instance, the command for the next slide is:

Zippy is cool...\pause\bigskipBut Bucky rules!\pause\bigskipGo Badgers!

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 26: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Animating text: an example

Zippy is cool...

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 27: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Animating text: an example

Zippy is cool...

But Bucky rules!

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 28: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Animating text: an example

Zippy is cool...

But Bucky rules!

Go Badgers!

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 29: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Theorem type environments

Theorem and definition environments work the same in beamer asin regular LaTeX:\begin{theorem}\end{theorem}

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 30: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

Theorem type environments

Theorem and definition environments work the same in beamer asin regular LaTeX:\begin{theorem}\end{theorem}

However, depending on what theme you’re using, the result mayappear different.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 31: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

An example theorem

DefinitionA Badger is defined to be one plus a Zip.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 32: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

An example theorem

DefinitionA Badger is defined to be one plus a Zip.

TheoremThe Badgers are better than the Zips.

Proof.Obvious.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 33: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

LaTeX + Powerpoint = BeamerTitle page, sections, and subsectionsThemes and color schemesText effects

An example theorem

DefinitionA Badger is defined to be one plus a Zip.

TheoremThe Badgers are better than the Zips.

Proof.Obvious.

Compare this to how theorems looked in the other presentation.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 34: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Picture = thousand words

Now we’ll look at how to make pictures in LaTeX. Later we’ll seehow to animate those pictures in beamer.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 35: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Picture = thousand words

Now we’ll look at how to make pictures in LaTeX. Later we’ll seehow to animate those pictures in beamer.

There are essentially three ways to do graphics in LaTeX: (1)macros, (2) drawing in LaTeX, and (3) importing pictures.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 36: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The easy/lazy approach

Perhaps the easiest way to make graphics in LaTeX is to letsomeone else do all the work, by just using a “macro”.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 37: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The easy/lazy approach

Perhaps the easiest way to make graphics in LaTeX is to letsomeone else do all the work, by just using a “macro”.

For instance, suppose I was interested in partitions and Youngdiagrams

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 38: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The easy/lazy approach

Perhaps the easiest way to make graphics in LaTeX is to letsomeone else do all the work, by just using a “macro”.

For instance, suppose I was interested in partitions and Youngdiagrams (wake up, Cory).

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 39: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Empty Young diagrams

You can go online and download the packages “young” and“youngtab” and put them in your header as\usepackage{young}\usepackage{youngtab}

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 40: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Empty Young diagrams

You can go online and download the packages “young” and“youngtab” and put them in your header as\usepackage{young}\usepackage{youngtab}

To make an empty Young diagram of shape (4, 3, 2):$ $ \yng(4,3,2) $ $

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 41: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Which gives you...

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 42: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Young diagrams with numbers in the boxes

To put numbers in the boxes of your Young diagram (like, forinstance, hook lengths), download and use the “Young” macro.For example, to get:

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 43: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Young diagrams with numbers in the boxes

To put numbers in the boxes of your Young diagram (like, forinstance, hook lengths), download and use the “Young” macro.For example, to get:

9 6 4 2 16 3 14 121

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 44: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Young diagrams with numbers in the boxes

Use the commands:

$ $ \begin{Young}9 & 6 & 4 & 2 & 1 \ cr6 & 3 & 1 \ cr4 & 1 \ cr2 \ cr1 \ cr\end{Young}$ $

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 45: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Matrices

You might also often find yourself having to deal with matricesand/or column or row vectors

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 46: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Matrices

You might also often find yourself having to deal with matricesand/or column or row vectors (Wake up, Courtney and Nick.)

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 47: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Matrices

You might also often find yourself having to deal with matricesand/or column or row vectors (Wake up, Courtney and Nick.)

These are easy enough to do, using the “array” environment,which does not need to be downloaded, it’s already in LaTeX.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 48: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Matrices

You might also often find yourself having to deal with matricesand/or column or row vectors (Wake up, Courtney and Nick.)

These are easy enough to do, using the “array” environment,which does not need to be downloaded, it’s already in LaTeX.

For example, I made:

0 0 1 00 1 0 00 0 0 11 0 0 0

.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 49: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Making matrices

Using the commands:$ $ \left( \begin{array}{cccc}0 & 0 & 1 & 0 \\0 & 1 & 0 & 0 \\0 & 0 & 0 & 1 \\1 & 0 & 0 & 0\end{array} \right). $ $

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 50: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Unpacking that last slide

The \left( tells LaTeX that you want a left parenthesis as big asthe array (so it will look like a matrix).

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 51: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Unpacking that last slide

The \left( tells LaTeX that you want a left parenthesis as big asthe array (so it will look like a matrix).

The {cccc} after the \begin{array} tells LaTeX you want fourcolumns.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 52: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Unpacking that last slide

The \left( tells LaTeX that you want a left parenthesis as big asthe array (so it will look like a matrix).

The {cccc} after the \begin{array} tells LaTeX you want fourcolumns.

The & tells LaTeX to go to the next column, and the \\ tellsLaTeX to go to the next row.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 53: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Other macros

If (for some weird reason) you don’t care about Young diagrams,there are dozens (if not hundreds) of other macros out there onthe internet...

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 54: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Other macros

If (for some weird reason) you don’t care about Young diagrams,there are dozens (if not hundreds) of other macros out there onthe internet...

I For curves

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 55: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Other macros

If (for some weird reason) you don’t care about Young diagrams,there are dozens (if not hundreds) of other macros out there onthe internet...

I For curves

I For commutative diagrams

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 56: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Other macros

If (for some weird reason) you don’t care about Young diagrams,there are dozens (if not hundreds) of other macros out there onthe internet...

I For curves

I For commutative diagrams

I For musical symbols !?!?

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 57: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The picture environment

There are also commands that allow you to draw pictures directlyin LaTeX, in the “picture” environment.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 58: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The picture environment

There are also commands that allow you to draw pictures directlyin LaTeX, in the “picture” environment.

In this environment, you “place” lines, figures, and text within thepicture environment according to a coordinate system.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 59: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Placing and sizing the picture

Begin with the command

\begin{picture} (x,y)...picture commands...\end{picture}

The (x,y) indicates the dimensions of the rectangle the picture willbe the default units.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 60: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The “put” command

Within the picture environment, you place objects (lines, circles,text, etc) using the “put” command.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 61: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The “put” command

Within the picture environment, you place objects (lines, circles,text, etc) using the “put” command.

\put(5.2, 3.4){ Some text }puts “Some text” at the point (5.2, 3.4).

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 62: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The “put” command

Within the picture environment, you place objects (lines, circles,text, etc) using the “put” command.

\put(5.2, 3.4){ Some text }puts “Some text” at the point (5.2, 3.4).

\put(2.8, 1.6){\line(1,2){3}}puts a line with slope 2

1 and length 3, beginning at the point(2.8, 1.6).

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 63: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

The “put” command

Within the picture environment, you place objects (lines, circles,text, etc) using the “put” command.

\put(5.2, 3.4){ Some text }puts “Some text” at the point (5.2, 3.4).

\put(2.8, 1.6){\line(1,2){3}}puts a line with slope 2

1 and length 3, beginning at the point(2.8, 1.6).

\put(1.0, 3.2){\circle{1.6}}puts a circle of diameter 1.6 centered at (1.0, 3.2).

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 64: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

A (barely) nontrivial drawing

G

N

ϕ

θ

NG (Q)ϕ̃

NG (P)

NN(P)

bb

bb

ϕ(NG (P))

θ̃

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 65: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Another, sillier, example

&%'$

� �∆d d

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 66: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

How to draw figures in other programs

Usually I draw figures in the (free) program Open Office, and thenimport them into LaTeX using the graphicx package.

I Make sure you have the graphicx package and the command\usepackage{graphicx} in your header.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 67: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

How to draw figures in other programs

Usually I draw figures in the (free) program Open Office, and thenimport them into LaTeX using the graphicx package.

I Make sure you have the graphicx package and the command\usepackage{graphicx} in your header.

I Draw your picture in Open Office or some other program,export it as an .eps file, and save it somewhere where your texcompiler can find it

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 68: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

How to draw figures in other programs

Usually I draw figures in the (free) program Open Office, and thenimport them into LaTeX using the graphicx package.

I Make sure you have the graphicx package and the command\usepackage{graphicx} in your header.

I Draw your picture in Open Office or some other program,export it as an .eps file, and save it somewhere where your texcompiler can find it

I Use the command \includegraphics{nameoffile.eps} to placethe picture.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 69: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

An example of an imported picture

Here’s an example of an imported drawing:

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 70: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Scaling

You can scale the picture (which is often necessary), for instance:\includegraphics[scale=.2]{groupsaregreat.eps} will scale the epsfigure “groupsaregreat” by a factor of .2.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 71: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Importing pictures

Sometimes you want to place a picture in LaTeX. Althoughofficially there are lots of ways to do this, I find the only way thatworks well with any consistency is to first import the picture intoOpenOffice, manipulate it as needed there, and then export it asan .eps file.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 72: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

Importing pictures

Sometimes you want to place a picture in LaTeX. Althoughofficially there are lots of ways to do this, I find the only way thatworks well with any consistency is to first import the picture intoOpenOffice, manipulate it as needed there, and then export it asan .eps file.

This may sacrifice some of the picture quality, but it makes itmuch easier to work with.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 73: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

An imported picture

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 74: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Using macros for picturesDrawing in LaTeXImporting into LaTeX

An imported picture

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 75: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Animating pictures

As you just saw, you can do some very rudimentary animation ofgraphics using beamer.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 76: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Animating pictures

As you just saw, you can do some very rudimentary animation ofgraphics using beamer.

There are essentially two ways of doing this: Using the \pausecommand, or simply using new pages (as in the last slides).

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 77: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Animating pictures

As you just saw, you can do some very rudimentary animation ofgraphics using beamer.

There are essentially two ways of doing this: Using the \pausecommand, or simply using new pages (as in the last slides).

Here are some animations I’ve done: The first is from a talk aboutapplications of partitions to algebra.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 78: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

An example of hook lengths

A definition by example:

Let λ = {5, 3, 2, 1, 1}.The box (2, 1):

X

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 79: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

An example of hook lengths

A definition by example:

Let λ = {5, 3, 2, 1, 1}.The hook length of box (2, 1)...

– – –lll

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 80: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

An example of hook lengths

A definition by example:

Let λ = {5, 3, 2, 1, 1}.The hook length of box (2, 1)... is 6.

6

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 81: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

An example of hook lengths

A definition by example:

Let λ = {5, 3, 2, 1, 1}.Now we put in all of the hook lengths.

9 6 4 2 16 3 14 121

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 82: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

How I did that

Each part of the animation was a whole new slide (obviously I usedcut and paste a lot here), though it has the appearance of oneslide being animated.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 83: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

How I did that

Each part of the animation was a whole new slide (obviously I usedcut and paste a lot here), though it has the appearance of oneslide being animated.

The next example was done all on one slide, but with judicious useof the “pause” command.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 84: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Example

Let G = S4.

G ∼= S4

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 85: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Example

Let G = S4.

G ∼= S4

A

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 86: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Example

Let G = S4.

G ∼= S4

A

G/A ∼= Z2

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 87: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Example

Let G = S4.

G ∼= S4

A

G/A ∼= Z2

K

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 88: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Example

Let G = S4.

G ∼= S4

A

G/A ∼= Z2

K

A/K ∼= Z3

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 89: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Example

Let G = S4.

G ∼= S4

A

G/A ∼= Z2

K

A/K ∼= Z3

1

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 90: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Animating drawings using framesAnimating graphics using “pause”

Example

Let G = S4.

G ∼= S4

A

G/A ∼= Z2

K

A/K ∼= Z3

1

K/1 ∼= Z2 × Z2

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 91: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Your first beamer presentationPictures

Exercise 1

Exercise: Download and install beamer. Make a rudimentarybeamer presentation, using a title page, sections, subsections, andtext animation.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 92: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Your first beamer presentationPictures

Exercise 2

Exercise: (a) Draw some basic pictures in LaTeX. (b) Create somedrawings in OpenOffice and import them into LaTeX. (Warning: ifyou do not already have it setup, you may need to create a LaTeX=> PS => PDF path to get the graphics to come out, which canbe a pain.) (c) Import some photos into a beamer presentation.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX

Page 93: Introduction to Beamer and Graphics on LaTeX - uakron.edumath.uakron.edu/~cossey/May 27th presentation.pdf · Introduction to Beamer Pictures in LaTeX Animating graphics Homework

Introduction to BeamerPictures in LaTeX

Animating graphicsHomework

Your first beamer presentationPictures

Exercise 3

Exercise: Create a beamer presentation with nontrivial graphicalanimation. Make a stick figure that does jumping jacks, forinstance. You could either do this in beamer or in OpenOffice andimport it one slide at a time.

JP Cossey University of Akron Introduction to Beamer and Graphics on LaTeX