Introduction to Beamer and Graphics on LaTeX JP Cossey University - - PowerPoint PPT Presentation

introduction to beamer and graphics on latex
SMART_READER_LITE
LIVE PREVIEW

Introduction to Beamer and Graphics on LaTeX JP Cossey University - - PowerPoint PPT Presentation

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


slide-1
SLIDE 1

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

slide-2
SLIDE 2

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

What is Beamer?

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

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

slide-3
SLIDE 3

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

What is Beamer?

Beamer is a version of LaTeX that allows you to make powerpoint-style presentations using standard LaTeX coding, with a few extra tweaks. Obviously what you’re looking at now was done in Beamer. Beamer outputs .pdf files that are displayed by, for instance, Adobe Reader.

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

slide-4
SLIDE 4

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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

slide-5
SLIDE 5

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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 downloading and 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

slide-6
SLIDE 6

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Can I just steal your files?

Sure, feel free. The LaTeX code for this presentation is available

  • n 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

slide-7
SLIDE 7

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Can I just steal your files?

Sure, feel free. The LaTeX code for this presentation is available

  • n 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

slide-8
SLIDE 8

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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

slide-9
SLIDE 9

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

When should I use Beamer?

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

◮ “chalk talk” versus Beamer

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

slide-10
SLIDE 10

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

When should I use Beamer?

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

◮ “chalk talk” versus Beamer ◮ Time constraints?

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

slide-11
SLIDE 11

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

When should I use Beamer?

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

◮ “chalk talk” versus Beamer ◮ Time constraints? ◮ Pictures?

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

slide-12
SLIDE 12

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

When should I use Beamer?

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

◮ “chalk talk” versus Beamer ◮ Time constraints? ◮ Pictures? ◮ Culture

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

slide-13
SLIDE 13

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Getting started

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

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

slide-14
SLIDE 14

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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 particular slide.

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

slide-15
SLIDE 15

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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 particular slide. 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

slide-16
SLIDE 16

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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

slide-17
SLIDE 17

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Zippy is great...

...but Bucky the Badger rules!

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

slide-18
SLIDE 18

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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

slide-19
SLIDE 19

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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

slide-20
SLIDE 20

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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 the command \section{section name } and every frame after that command is included in that section. Similarly with subsections. These are automatically placed at the top of every slide, or perhaps somewhere else, depending on the beamer “theme” you’re using.

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

slide-21
SLIDE 21

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Beamer themes

There are different beamer “themes” available. The theme for this presentation is called “split”, meaning in the header of this file I have 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

slide-22
SLIDE 22

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Color schemes

I’m currently using the default color them for beamer. But there are 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

slide-23
SLIDE 23

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Color schemes

I’m currently using the default color them for beamer. But there are 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 color schemes and themes, and others can be downloaded.

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

slide-24
SLIDE 24

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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

slide-25
SLIDE 25

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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 \bigskip But Bucky rules! \pause \bigskip Go Badgers!

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

slide-26
SLIDE 26

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Animating text: an example

Zippy is cool...

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

slide-27
SLIDE 27

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Animating text: an example

Zippy is cool... But Bucky rules!

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

slide-28
SLIDE 28

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text 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

slide-29
SLIDE 29

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Theorem type environments

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

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

slide-30
SLIDE 30

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

Theorem type environments

Theorem and definition environments work the same in beamer as in regular LaTeX: \begin{theorem} \end{theorem} However, depending on what theme you’re using, the result may appear different.

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

slide-31
SLIDE 31

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

An example theorem

Definition

A Badger is defined to be one plus a Zip.

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

slide-32
SLIDE 32

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

An example theorem

Definition

A Badger is defined to be one plus a Zip.

Theorem

The Badgers are better than the Zips.

Proof.

Obvious.

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

slide-33
SLIDE 33

Introduction to Beamer Pictures in LaTeX Animating graphics Homework LaTeX + Powerpoint = Beamer Title page, sections, and subsections Themes and color schemes Text effects

An example theorem

Definition

A Badger is defined to be one plus a Zip.

Theorem

The 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

slide-34
SLIDE 34

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Picture = thousand words

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

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

slide-35
SLIDE 35

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Picture = thousand words

Now we’ll look at how to make pictures in LaTeX. Later we’ll see how 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

slide-36
SLIDE 36

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

The easy/lazy approach

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

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

slide-37
SLIDE 37

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

The easy/lazy approach

Perhaps the easiest way to make graphics in LaTeX is to let someone else do all the work, by just using a “macro”. For instance, suppose I was interested in partitions and Young diagrams

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

slide-38
SLIDE 38

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

The easy/lazy approach

Perhaps the easiest way to make graphics in LaTeX is to let someone else do all the work, by just using a “macro”. For instance, suppose I was interested in partitions and Young diagrams (wake up, Cory).

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

slide-39
SLIDE 39

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-40
SLIDE 40

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-41
SLIDE 41

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Which gives you...

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

slide-42
SLIDE 42

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Young diagrams with numbers in the boxes

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

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

slide-43
SLIDE 43

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Young diagrams with numbers in the boxes

To put numbers in the boxes of your Young diagram (like, for instance, hook lengths), download and use the “Young” macro. For example, to get: 9 6 4 2 1 6 3 1 4 1 2 1

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

slide-44
SLIDE 44

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Young diagrams with numbers in the boxes

Use the commands: $ $ \begin{Young} 9 & 6 & 4 & 2 & 1 \ cr 6 & 3 & 1 \ cr 4 & 1 \ cr 2 \ cr 1 \ cr \end{Young} $ $

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

slide-45
SLIDE 45

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Matrices

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

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

slide-46
SLIDE 46

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Matrices

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

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

slide-47
SLIDE 47

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Matrices

You might also often find yourself having to deal with matrices and/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

slide-48
SLIDE 48

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Matrices

You might also often find yourself having to deal with matrices and/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:     1 1 1 1     .

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

slide-49
SLIDE 49

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-50
SLIDE 50

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Unpacking that last slide

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

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

slide-51
SLIDE 51

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Unpacking that last slide

The \left( tells LaTeX that you want a left parenthesis as big as the array (so it will look like a matrix). The {cccc} after the \begin{array} tells LaTeX you want four columns.

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

slide-52
SLIDE 52

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Unpacking that last slide

The \left( tells LaTeX that you want a left parenthesis as big as the array (so it will look like a matrix). The {cccc} after the \begin{array} tells LaTeX you want four columns. The & tells LaTeX to go to the next column, and the \\ tells LaTeX to go to the next row.

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

slide-53
SLIDE 53

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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 on the internet...

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

slide-54
SLIDE 54

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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 on the internet...

◮ For curves

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

slide-55
SLIDE 55

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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 on the internet...

◮ For curves ◮ For commutative diagrams

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

slide-56
SLIDE 56

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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 on the internet...

◮ For curves ◮ For commutative diagrams ◮ For musical symbols !?!?

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

slide-57
SLIDE 57

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

The picture environment

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

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

slide-58
SLIDE 58

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

The picture environment

There are also commands that allow you to draw pictures directly in LaTeX, in the “picture” environment. In this environment, you “place” lines, figures, and text within the picture environment according to a coordinate system.

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

slide-59
SLIDE 59

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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 will be the default units.

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

slide-60
SLIDE 60

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-61
SLIDE 61

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-62
SLIDE 62

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-63
SLIDE 63

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-64
SLIDE 64

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

A (barely) nontrivial drawing

G N ϕ θ NG(Q) ˜ ϕ NG(P) NN(P)

❜❜❜ ❜

ϕ(NG (P)) ˜ θ

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

slide-65
SLIDE 65

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Another, sillier, example

✫✪ ✬✩ ✂ ✁

❞ ❞

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

slide-66
SLIDE 66

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

How to draw figures in other programs

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

◮ 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

slide-67
SLIDE 67

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

How to draw figures in other programs

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

◮ Make sure you have the graphicx package and the command

\usepackage{graphicx} in your header.

◮ Draw your picture in Open Office or some other program,

export it as an .eps file, and save it somewhere where your tex compiler can find it

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

slide-68
SLIDE 68

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

How to draw figures in other programs

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

◮ Make sure you have the graphicx package and the command

\usepackage{graphicx} in your header.

◮ Draw your picture in Open Office or some other program,

export it as an .eps file, and save it somewhere where your tex compiler can find it

◮ Use the command \includegraphics{nameoffile.eps} to place

the picture.

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

slide-69
SLIDE 69

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing 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

slide-70
SLIDE 70

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Scaling

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

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

slide-71
SLIDE 71

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Importing pictures

Sometimes you want to place a picture in LaTeX. Although

  • fficially there are lots of ways to do this, I find the only way that

works well with any consistency is to first import the picture into OpenOffice, manipulate it as needed there, and then export it as an .eps file.

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

slide-72
SLIDE 72

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

Importing pictures

Sometimes you want to place a picture in LaTeX. Although

  • fficially there are lots of ways to do this, I find the only way that

works well with any consistency is to first import the picture into OpenOffice, manipulate it as needed there, and then export it as an .eps file. This may sacrifice some of the picture quality, but it makes it much easier to work with.

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

slide-73
SLIDE 73

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

An imported picture

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

slide-74
SLIDE 74

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Using macros for pictures Drawing in LaTeX Importing into LaTeX

An imported picture

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

slide-75
SLIDE 75

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating graphics using “pause”

Animating pictures

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

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

slide-76
SLIDE 76

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating graphics using “pause”

Animating pictures

As you just saw, you can do some very rudimentary animation of graphics using beamer. There are essentially two ways of doing this: Using the \pause command, or simply using new pages (as in the last slides).

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

slide-77
SLIDE 77

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating graphics using “pause”

Animating pictures

As you just saw, you can do some very rudimentary animation of graphics using beamer. There are essentially two ways of doing this: Using the \pause command, or simply using new pages (as in the last slides). Here are some animations I’ve done: The first is from a talk about applications of partitions to algebra.

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

slide-78
SLIDE 78

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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

slide-79
SLIDE 79

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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)... – – – l l l

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

slide-80
SLIDE 80

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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

slide-81
SLIDE 81

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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 1 6 3 1 4 1 2 1

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

slide-82
SLIDE 82

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating graphics using “pause”

How I did that

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

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

slide-83
SLIDE 83

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating graphics using “pause”

How I did that

Each part of the animation was a whole new slide (obviously I used cut and paste a lot here), though it has the appearance of one slide being animated. The next example was done all on one slide, but with judicious use

  • f the “pause” command.

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

slide-84
SLIDE 84

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating graphics using “pause”

Example

Let G = S4. G ∼ = S4

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

slide-85
SLIDE 85

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating graphics using “pause”

Example

Let G = S4. G ∼ = S4 A

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

slide-86
SLIDE 86

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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

slide-87
SLIDE 87

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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

slide-88
SLIDE 88

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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

slide-89
SLIDE 89

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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

slide-90
SLIDE 90

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Animating drawings using frames Animating 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

slide-91
SLIDE 91

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Your first beamer presentation Pictures

Exercise 1

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

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

slide-92
SLIDE 92

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Your first beamer presentation Pictures

Exercise 2

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

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

slide-93
SLIDE 93

Introduction to Beamer Pictures in LaTeX Animating graphics Homework Your first beamer presentation Pictures

Exercise 3

Exercise: Create a beamer presentation with nontrivial graphical

  • animation. Make a stick figure that does jumping jacks, for
  • instance. You could either do this in beamer or in OpenOffice and

import it one slide at a time.

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