Useful L T EX Packages A Fanny Jasso-Hernandez Kerry Luse The - - PowerPoint PPT Presentation

useful l t ex packages
SMART_READER_LITE
LIVE PREVIEW

Useful L T EX Packages A Fanny Jasso-Hernandez Kerry Luse The - - PowerPoint PPT Presentation

Useful L T EX Packages A Fanny Jasso-Hernandez Kerry Luse The George Washington University March 4, 2007 Fanny & Kerry (GWU) Useful L A T EX Packages March 4, 2007 1 / 51 Outline Figures 1 eps Files jpeg Files Troubleshooting


slide-1
SLIDE 1

Useful L

A

T EX Packages

Fanny Jasso-Hernandez Kerry Luse

The George Washington University

March 4, 2007

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 1 / 51

slide-2
SLIDE 2

Outline

1

Figures eps Files jpeg Files Troubleshooting

2

Presentations Slides Presentation Packages

3

X Y− pic Preamble The Matrix Environment

Arrows in Diagrams More Arrow Attributes

The xy Environment Knot Pictures

4

References

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 2 / 51

slide-3
SLIDE 3

Outline

1

Figures eps Files jpeg Files Troubleshooting

2

Presentations Slides Presentation Packages

3

X Y− pic Preamble The Matrix Environment

Arrows in Diagrams More Arrow Attributes

The xy Environment Knot Pictures

4

References

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 3 / 51

slide-4
SLIDE 4

Preamble

If you would like to use eps files in a document, the preamble must include the following: \usepackage{epsfig} If you would like to use jpeg files in a document, the preamble must include one of the following: \usepackage[pdftex]{graphicx} \usepackage{pgf,pgfarrows,pgfnodes, pgfautomata,pgfheaps} When using jpeg’s, you must use PDFTex.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 4 / 51

slide-5
SLIDE 5

The Figure environment

\begin{figure} . . . \end{figure} An eps file can be placed into a figure environment in two ways: \begin{figure}[h/t/b/p] \centerline{\hbox{ \epsfysize=size \epsffile{filename.eps} } } \end{figure} \begin{figure}[h/t/b/p] \centerline{\includegraphics[height=size] {filename.eps}} \end{figure}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 5 / 51

slide-6
SLIDE 6

Captions,Labels, and References

\begin{figure}[h/t/b/p]

\centerline{\hbox{ \epsfysize=size \epsffile{name.eps} } } \caption{caption text} \label{label text}

\end{figure} If you add a label to your figure, you can reference it later in your document: \ref{label text}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 6 / 51

slide-7
SLIDE 7

Captions,Labels, and References

\begin{figure}[h/t/b/p]

\centerline{\hbox{ \epsfysize=size \epsffile{name.eps} } } \caption{caption text} \label{label text}

\end{figure} If you add a label to your figure, you can reference it later in your document: \ref{label text}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 6 / 51

slide-8
SLIDE 8

Captions,Labels, and References

\begin{figure}[h/t/b/p]

\centerline{\hbox{ \epsfysize=size \epsffile{name.eps} } } \caption{caption text} \label{label text}

\end{figure} If you add a label to your figure, you can reference it later in your document: \ref{label text}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 6 / 51

slide-9
SLIDE 9

jpegs in a Figure Environment

A jpg file can be placed into a figure environment by typing: \begin{figure}[h/t/b/p] \centerline{\includegraphics[height=size] {filename.jpg}} \end{figure}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 7 / 51

slide-10
SLIDE 10

Captions and Labels

\begin{figure}[h] \centerline{ \includegraphics[height=1in] {extanglestate.jpg}} \caption{An example.} \label{example} \end{figure} will typeset Figure 1:

Figure: An example.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 8 / 51

slide-11
SLIDE 11

Spacing

You can use regular spacing commands like \vspace{dim} and \hspace{dim} within the figure environment. For example: \begin{figure}[h] \centerline{\hbox{\epsfysize=1in \epsffile{file1.eps}} \hspace{1cm}\hbox{\epsfysize=1in \epsffile{file2.eps}}} \caption{Two pictures next to each other} \label{twopics} \end{figure} will typeset two files on the same line, 1cm apart.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 9 / 51

slide-12
SLIDE 12

Figures in a Line of Text

If you need to place a figure in a line of text you can use the following commands: \vcenter{\hbox{\epsfig{file=filename.eps}}} $\vcenter{\hbox{\includegraphics[height=1cm] {filename.jpg}}}$ For example, Consider the graph $\vcenter{\hbox{\includegraphics[height=1cm] {thetagraph.jpg}}}$ with.... will typeset Consider the graph with....

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 10 / 51

slide-13
SLIDE 13

Troubleshooting

If you have trouble with eps files, you may consider changing the preamble to include:

◮ \usepackage[dvips]{epsfig,graphics} ◮ \input{epsf}

If you get an error message indicating that the picture file is not found, make sure that the file is saved in the same folder as the .tex file. If you have trouble with the \ref{} command, try placing the first reference to a figure AFTER the occurrence of the figure, and try again. For more help using figures you can try: L

AT

EX User’s guide and reference manual, by Lamport

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 11 / 51

slide-14
SLIDE 14

Outline

1

Figures eps Files jpeg Files Troubleshooting

2

Presentations Slides Presentation Packages

3

X Y− pic Preamble The Matrix Environment

Arrows in Diagrams More Arrow Attributes

The xy Environment Knot Pictures

4

References

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 12 / 51

slide-15
SLIDE 15

The Slides Class

To make transparency slides, use the slides class: \documentclass{slides} Create slides by enclosing text in a slide environment: \begin{slide} <text of the slide> \end{slide} You can use both .jpg and .eps files with the slides class, but not the figure environment.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 13 / 51

slide-16
SLIDE 16

You can create a title slide, for example: \title{My Title} \author{K. Luse \\ \vspace{.5in} {\small{George Washington University}\\ {\small{kmcginn@gwu.edu}}}} \date{Feb. 23, 2007\\ \vspace{1in} \small{Joint work with F. Jasso}} \maketitle

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 14 / 51

slide-17
SLIDE 17

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 15 / 51

slide-18
SLIDE 18

A typical frame could be typeset by: \begin{slide} This is a slide, with two types of eps figures: \centerline{\hbox{ \epsfysize=1in \epsffile{state010.eps} } } and here I have $G=\vcenter{\hbox{\epsfig{file=state011.eps}}}$ in the middle of this sentence. \\ \\ The text is vertically centered, and in a large sized font. \end{slide}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 16 / 51

slide-19
SLIDE 19

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 17 / 51

slide-20
SLIDE 20

Using Overlays in the Slides Class

You can make overlays using the slide class, as follows: First, make sure you add \usepackage{color} to your preamble \begin{slide} \begin{itemize} \item this is the first bullet {\color{white} \item this is the hidden second bullet} \end{itemize} \end{slide} \begin{overlay} \begin{itemize} \item this is the first bullet {\color{black} \item this is the hidden second bullet} \end{itemize} \end{overlay}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 18 / 51

slide-21
SLIDE 21

Landscape Slides

If you would like to use the slide class to create a PDF slideshow, (or just landscape transparencies) you can use: \documentclass[landscape]{slides} \usepackage[pdftex]{graphicx} \AtBeginDocument{% \pdfpageheight = \paperheight \pdfpagewidth = \paperwidth} \begin{document} . . . \end{document} \begin{slide} The text on this slide is still centered. \vspace{2in} You can use any commands from the slides class, but you must use PDF Tex. \end{slide}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 19 / 51

slide-22
SLIDE 22

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 20 / 51

slide-23
SLIDE 23

Beamer

To use Beamer, make sure you have the following packages: beamer pgf xcolor You can find these packages online and download them into the appropriate location in your computer, or if you are using MikTeX, you can use the MikTeX Package Manager.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 21 / 51

slide-24
SLIDE 24

Beamer

To use Beamer, make sure you have the following packages: beamer pgf xcolor You can find these packages online and download them into the appropriate location in your computer, or if you are using MikTeX, you can use the MikTeX Package Manager.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 21 / 51

slide-25
SLIDE 25

Beamer

To use Beamer, make sure you have the following packages: beamer pgf xcolor You can find these packages online and download them into the appropriate location in your computer, or if you are using MikTeX, you can use the MikTeX Package Manager.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 21 / 51

slide-26
SLIDE 26

The Preamble

\documentclass{beamer} \usetheme{City Name} \usecolortheme{Flying Bird Name} \title{Example Presentation} \author{Name} \date{\today}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 22 / 51

slide-27
SLIDE 27

Some Example Themes

There are many themes, color themes, and font themes.

1

\usepackage{beamerthemesplit}

2

\usetheme{Antibes} \usecolortheme{wolverine}

3

\usetheme{Marburg} \usecolortheme{albatross}

4

\usetheme{PaloAlto} \usecolortheme{sidebartab} You can only change the overall theme in the preamble

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 23 / 51

slide-28
SLIDE 28

Some Example Themes

There are many themes, color themes, and font themes.

1

\usepackage{beamerthemesplit}

2

\usetheme{Antibes} \usecolortheme{wolverine}

3

\usetheme{Marburg} \usecolortheme{albatross}

4

\usetheme{PaloAlto} \usecolortheme{sidebartab} You can only change the overall theme in the preamble

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 23 / 51

slide-29
SLIDE 29

Some Example Themes

There are many themes, color themes, and font themes.

1

\usepackage{beamerthemesplit}

2

\usetheme{Antibes} \usecolortheme{wolverine}

3

\usetheme{Marburg} \usecolortheme{albatross}

4

\usetheme{PaloAlto} \usecolortheme{sidebartab} You can only change the overall theme in the preamble

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 23 / 51

slide-30
SLIDE 30

Some Example Themes

There are many themes, color themes, and font themes.

1

\usepackage{beamerthemesplit}

2

\usetheme{Antibes} \usecolortheme{wolverine}

3

\usetheme{Marburg} \usecolortheme{albatross}

4

\usetheme{PaloAlto} \usecolortheme{sidebartab} You can only change the overall theme in the preamble

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 23 / 51

slide-31
SLIDE 31

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 24 / 51

slide-32
SLIDE 32

Starting the Document

\title{Title} \author[Short Name]{Name} \institute[Short Name]{Name} \date{\today} \maketitle \part{Main Part} \frame{\frametitle{Outline}\tableofcontents[part=1]} \AtBeginSection[]{\frame{\frametitle{Outline} \tableofcontents[current]}} \section{Section Name} \subsection{Subsection Name}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 25 / 51

slide-33
SLIDE 33

Frames

Instead of slides, we use a frame environment: \begin{frame}\frametitle{Title of Frame} <text> \end{frame} The frame environments supports L

A

T EX environments, for example: This list with over- lays is created by the code on the right

\begin{itemize}[<+-|alert@+>] \item This list with over- \item lays is created by \item the code on the right \end{itemize}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 26 / 51

slide-34
SLIDE 34

Frames

Instead of slides, we use a frame environment: \begin{frame}\frametitle{Title of Frame} <text> \end{frame} The frame environments supports L

A

T EX environments, for example: This list with over- lays is created by the code on the right

\begin{itemize}[<+-|alert@+>] \item This list with over- \item lays is created by \item the code on the right \end{itemize}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 26 / 51

slide-35
SLIDE 35

Frames

Instead of slides, we use a frame environment: \begin{frame}\frametitle{Title of Frame} <text> \end{frame} The frame environments supports L

A

T EX environments, for example: This list with over- lays is created by the code on the right

\begin{itemize}[<+-|alert@+>] \item This list with over- \item lays is created by \item the code on the right \end{itemize}

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 26 / 51

slide-36
SLIDE 36

Environment Formats

Beamer will automatically format environments: Theorem (Theorem Title) Our Big Result Example (First Example) We could consider two cases:

1

first part

2

second part

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 27 / 51

slide-37
SLIDE 37

Environment Formats in Other Themes

The environments look different in different themes:

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 28 / 51

slide-38
SLIDE 38

Other Features

The overlays in the earlier slides were created by putting a \pause command between blocks of text. The \setbeamercovered{dynamic} command in the preamble creates the ‘shadow’ effect Adding \usepackage{multicols} to the preamble makes inserting columns easy. You can use figure environment, and labels, and captions, but Beamer will not number the figures. Some nice references:

1

User’s Guide to the Beamer Class

2

Tutorial for Beamer, available at: http://heather.cs.ucdavis.edu/ matloff/beamer.html

3

A much longer demo, available at: us.share.geocities.com/kijoo2000/beamer.html

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 29 / 51

slide-39
SLIDE 39

Other Features

The overlays in the earlier slides were created by putting a \pause command between blocks of text. The \setbeamercovered{dynamic} command in the preamble creates the ‘shadow’ effect Adding \usepackage{multicols} to the preamble makes inserting columns easy. You can use figure environment, and labels, and captions, but Beamer will not number the figures. Some nice references:

1

User’s Guide to the Beamer Class

2

Tutorial for Beamer, available at: http://heather.cs.ucdavis.edu/ matloff/beamer.html

3

A much longer demo, available at: us.share.geocities.com/kijoo2000/beamer.html

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 29 / 51

slide-40
SLIDE 40

Other Features

The overlays in the earlier slides were created by putting a \pause command between blocks of text. The \setbeamercovered{dynamic} command in the preamble creates the ‘shadow’ effect Adding \usepackage{multicols} to the preamble makes inserting columns easy. You can use figure environment, and labels, and captions, but Beamer will not number the figures. Some nice references:

1

User’s Guide to the Beamer Class

2

Tutorial for Beamer, available at: http://heather.cs.ucdavis.edu/ matloff/beamer.html

3

A much longer demo, available at: us.share.geocities.com/kijoo2000/beamer.html

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 29 / 51

slide-41
SLIDE 41

Other Features

The overlays in the earlier slides were created by putting a \pause command between blocks of text. The \setbeamercovered{dynamic} command in the preamble creates the ‘shadow’ effect Adding \usepackage{multicols} to the preamble makes inserting columns easy. You can use figure environment, and labels, and captions, but Beamer will not number the figures. Some nice references:

1

User’s Guide to the Beamer Class

2

Tutorial for Beamer, available at: http://heather.cs.ucdavis.edu/ matloff/beamer.html

3

A much longer demo, available at: us.share.geocities.com/kijoo2000/beamer.html

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 29 / 51

slide-42
SLIDE 42

Other Features

The overlays in the earlier slides were created by putting a \pause command between blocks of text. The \setbeamercovered{dynamic} command in the preamble creates the ‘shadow’ effect Adding \usepackage{multicols} to the preamble makes inserting columns easy. You can use figure environment, and labels, and captions, but Beamer will not number the figures. Some nice references:

1

User’s Guide to the Beamer Class

2

Tutorial for Beamer, available at: http://heather.cs.ucdavis.edu/ matloff/beamer.html

3

A much longer demo, available at: us.share.geocities.com/kijoo2000/beamer.html

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 29 / 51

slide-43
SLIDE 43

Other Features

The overlays in the earlier slides were created by putting a \pause command between blocks of text. The \setbeamercovered{dynamic} command in the preamble creates the ‘shadow’ effect Adding \usepackage{multicols} to the preamble makes inserting columns easy. You can use figure environment, and labels, and captions, but Beamer will not number the figures. Some nice references:

1

User’s Guide to the Beamer Class

2

Tutorial for Beamer, available at: http://heather.cs.ucdavis.edu/ matloff/beamer.html

3

A much longer demo, available at: us.share.geocities.com/kijoo2000/beamer.html

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 29 / 51

slide-44
SLIDE 44

Other Features

The overlays in the earlier slides were created by putting a \pause command between blocks of text. The \setbeamercovered{dynamic} command in the preamble creates the ‘shadow’ effect Adding \usepackage{multicols} to the preamble makes inserting columns easy. You can use figure environment, and labels, and captions, but Beamer will not number the figures. Some nice references:

1

User’s Guide to the Beamer Class

2

Tutorial for Beamer, available at: http://heather.cs.ucdavis.edu/ matloff/beamer.html

3

A much longer demo, available at: us.share.geocities.com/kijoo2000/beamer.html

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 29 / 51

slide-45
SLIDE 45

Outline

1

Figures eps Files jpeg Files Troubleshooting

2

Presentations Slides Presentation Packages

3

X Y− pic Preamble The Matrix Environment

Arrows in Diagrams More Arrow Attributes

The xy Environment Knot Pictures

4

References

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 30 / 51

slide-46
SLIDE 46

X Y− pic

To use X Y− pic, you need to install the package:

  • xypic

In the preamble, include the line:

  • \usepackage[all,knot,arc,poly]{xy}

What is it? A package specialized on producing graphs and diagrams using the T EX (L

A

T EX and AmS − LaTeX) systems. Uses an “object” oriented graphic language, the objects have “methods,” describing how they typeset, stretch, etc. Includes “matrix” features that are easier to handle than the matrix code in T EX.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 31 / 51

slide-47
SLIDE 47

Example:

A

  • B

C D E F G H I $$ \xymatrix { A \ar [drdr] & B &C\\ D & E &F\\ G & H &I\\ }$$

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 32 / 51

slide-48
SLIDE 48

When dealing with the \xymatrix, one can specify the arrow’s position as: Tail of the arrow: \ar in the cell. Head of the arrow: [ position ], specified by using d’s or u’s and l’s

  • r r’s to indicate the head’s cell.

Example: X

f1

  • f2
  • Y

Z

f3

  • $$ \xymatrix{

X\ar[rr]ˆ{f_1} \ar[dr]_{f_2} & &Y \\ & Z\ar[ur]_{f_3} & } $$ NOTE: We require cells to point at. Labels for the arrows are specified by using and ˆ.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 33 / 51

slide-49
SLIDE 49

Example

U

y

  • x
  • (x,y)
  • X ⊗Z Y

q

  • p

X

f

  • Y

g

Z

$$ \xymatrix{ U \ar@/_/[ddr]_y \ar@/ˆ/[drr]ˆx \ar@{.>}[dr]|-{(x,y)}\\ & X \otimes_{Z} Y \ar[d]ˆq \ar[r]_p & X \ar[d]_f \\ & Y \ar[r]ˆg & Z } $$ @/_/ makes a concave down arrow, @/ˆ/ makes it concave up. To specify the curvature use @/ˆ1pc/ @{.>} makes a dotted arrow.

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 34 / 51

slide-50
SLIDE 50

More arrow attributes

To break an arrow use the character |: A

f

B

$\xymatrix@1{A\ar[r]|f&B}$. One can insert empty breaks using: \hole C

D

$\xymatrix@1{C\ar[r]|\hole & D }$ To place a label in between cells, brake an invisible arrow: A

  • B
  • D

C

$\xymatrix{ A \ar@{.>} [dr] \ar @{}[d]|{\wr\parallel} \ar@{˜>}[r] & B \ar[d] \\ D \ar[r] & C }$

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 35 / 51

slide-51
SLIDE 51

One can do loops using @(in,out) Where in and out can be: u, ur, r, dr, d, dl, l, ul. Example: x

id

  • $\xymatrix@1{

x \ar@(ul,dl)[]|{id} }$ One can also specify the place of the labels for the arrows and specify the place of intersection for two arrows using !{t_1 , t_2} 1

1000000x

  • 2000x
  • 1000000

1000

2x

  • x2
  • 2000

1 \ar[rr] ˆ-{1000000x} \ar[dr] _(.2){2000x} |!{[d];[rr]}\hole && 1000000 \\ 1000 \ar[r] _{2x} \ar[urr] _>>>>{xˆ2} & 2000

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 36 / 51

slide-52
SLIDE 52

Positions and Directions

  • \[

\xy (0,0)*{}="A"; (10,0)*{}="B"; (0,10)*{}="C"; "A"; "B" **\dir{-}; "B"; "C" **\dir{-}; "C"; "A" **\dir{-}; \endxy \]

  • $$ \xy

\POS (0,10) *{\bullet}*\cir<1pt>{} ="e", (0,0) *{\bullet}*\cir<1pt>{} ="f", (10,10) *{\bullet}*\cir<1pt>{} ="a", (10,0) *{\bullet}*\cir<1pt>{} ="b", (20,10) *{\bullet}*\cir<1pt>{} ="c", (20,0) *{\bullet}*\cir<1pt>{} ="d" \POS"e" \ar@{} @/l0ex/ "f" \POS"a" \ar@{} @/l2ex/ "b" \POS"a" \ar@{} @/r2ex/ "b" \POS"c" \ar@{} @/r0ex/ "d" \POS"c" \ar@{} @/l2ex/ "d" \POS"c" \ar@{} @/r2ex/ "d" \endxy$$ Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 37 / 51

slide-53
SLIDE 53

Nesting diagrams

\[ \xy (0,0)*{\xy (diagram) \endxy}; (2,0)*{\xy (some other diagram) \endxy}; \endxy \]

  • end
  • \[

\xy (0,0)*++{\xy (0,0)*{\bullet}="A"; (20,0)*{\cir<2pt>{}}="B"; "A"; "B"**\crv{(4,12) & (13,-8)}; \endxy }="x"; (40,0)*++{\xy (0,0)*{}="A"; (20,0)*{\textrm{end}}="B"; "A"; "B"**\crv˜pC{(8,-15) & (13,20)}; \endxy }="y"; {\ar@2{˜>} "x";"y"}; \endxy \] Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 38 / 51

slide-54
SLIDE 54

Another Example

\[ \xy (-35,40)*{\xy \cir<360pt>{} \endxy}; (0,15)*{\xy *[o]=<40pt>{\omega_{\mathcal{L}}}="o"*\frm{o}, +<5em,-5em>@+, (46,11)*[o]=<40pt>{f_0(\omega_{\mathcal{L}})}="s"*\frm{-o}, -<5em,-5em>@+, (15,-60)*[o]=<40pt>{f_1(\omega_{\mathcal{L}})}="p"*\frm{-o}, "o";"s" **{}?*+{f_0:\mathcal{L}\cong\mathcal{L}_0}="b", "o";"s"."b" **\crvs{-}, "o"."b";"s" **\crvs{-} ?>*\dir{>}, "o";"p" **\crv{(0,-20) & (30,-35)} ?>*\dir{>} \endxy}; (-20,10)*{f_1:\mathcal{L}\cong\mathcal{L}_1}; (10,48)*{\xy \cir<180pt>{} \endxy}; (-18,-20)*{\xy \cir<240pt>{} \endxy}; (-30,55)*{\hbox{comp.} \mathcal{L}\cong\omega+\omegaˆ*}; (25,63)*{\hbox{comp.} \mathcal{L}_0\cong\omega+\omegaˆ*}; (-10,-33)*{\hbox{comp.} \mathcal{L}_1\cong\omega+\omegaˆ*}; \endxy \] Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 39 / 51

slide-55
SLIDE 55

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 40 / 51

slide-56
SLIDE 56

Trees

m

  • x∅ ∈ B?

no

  • yes
  • x0 ∈ B?

no

  • yes
  • x1 ∈ B

no

  • x00 ∈ B?
  • x01 ∈ B?
  • x10 ∈ B?
  • m ∈ A or m /

∈ A m ∈ A or m / ∈ A m ∈ A or m / ∈ A was typeset in a matrix environment: \[ \xymatrix { <matrix commands> } \] \[ \xymatrix@{} { <matrix commands> } \] Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 41 / 51

slide-57
SLIDE 57

Trees

m

  • x∅ ∈ B?

no

  • yes
  • x0 ∈ B?

no

  • yes
  • x1 ∈ B

no

  • x00 ∈ B?
  • x01 ∈ B?
  • x10 ∈ B?
  • m ∈ A or m /

∈ A m ∈ A or m / ∈ A m ∈ A or m / ∈ A was typeset in a matrix environment: \[ \xymatrix { <matrix commands> } \] \[ \xymatrix@{} { <matrix commands> } \] Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 41 / 51

slide-58
SLIDE 58

m

x∅ ∈ B?

no

  • yes
  • x0 ∈ B?

no

  • yes
  • x1 ∈ B?

no

  • yes
  • x00 ∈ B?
  • x01 ∈ B?
  • x10 ∈ B?
  • x11 ∈ B?
  • m ∈ A or m /

∈ A m ∈ A or m / ∈ A m ∈ A or m / ∈ A m ∈ A or m / ∈ A Fanny & Kerry (GWU) Useful L

A

T EX Packages March 4, 2007 42 / 51

slide-59
SLIDE 59

Knot Pieces

Knots and links can be created by piecing together “crossings” and “joins,” like:

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 43 / 51

slide-60
SLIDE 60

Example

\xygraph{ !{0;/r1.0pc/:} !{\vunder} !{\vunder-} !{\hcap[2]} [l]!{\hcap[-2]} } \xygraph{ !{0;/r1.0pc/:} !{\vunder} !{\vunder-} [uur]!{\hcap[2]} [l]!{\hcap[-2]} }

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 44 / 51

slide-61
SLIDE 61

More Examples

← →

$$\xygraph{ !{0;/r1.0pc/:} [u(1.5)]!{\xcapv@(0)} !{\hover} !{\hunder-} [dll]!{\xcapv@(0)} [rru]!{\xcapv@(0)} [uuu]!{\xcapv@(0)}} \, \longleftrightarrow \, \xygraph{!{0;/r1.0pc/:} [u(1)]!{\vuncross[2]}}$$

−1

  • −1

−1

  • \xygraph{

!{0;/r2.0pc/:} !P3"a"{˜>{}} !P9"b"{˜:{(1.3288,0):}˜>{}} !P3"c"{˜:{(2.5,0):}˜>{}} !{\vunder˜{"b2"}{"b1"}{"a1"}{"a3"}<{-1}} !{\vcap˜{"c1"}{"c1"}{"b4"}{"b2"}=<} !{\vunder˜{"b5"}{"b4"}{"a2"}{"a1"}<{-1}} !{\vcap˜{"c2"}{"c2"}{"b7"}{"b5"}=<} !{\vunder˜{"b8"}{"b7"}{"a3"}{"a2"}<{-1}} !{\vcap˜{"c3"}{"c3"}{"b1"}{"b8"}=<} } Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 45 / 51

slide-62
SLIDE 62

The Polygon Option

The trefoil on the previous slide is made using the polygon option. This means that the knot pieces are placed between edges of polygons. To get the polygons to appear: 1 2

  • 3
  • 1

2 3 4 5

  • 6
  • 7
  • 8

9

  • 1

2

  • 3
  • \xygraph{

!{0;/r2.0pc/:} !P3"a"{˜*{\xypolynode}>{}} !P9"b"{˜:{(1.3288,0):} ˜*{\xypolynode}>{}} !P3"c"{˜:{(2.5,0):} ˜*{\xypolynode}>{}} }

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 46 / 51

slide-63
SLIDE 63

1 2

  • 3
  • 1

2 3 4 5

  • 6
  • 7
  • 8

9

  • 1

2

  • 3
  • Figure: The knot pieces are placed within the polygons

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 47 / 51

slide-64
SLIDE 64

Outline

1

Figures eps Files jpeg Files Troubleshooting

2

Presentations Slides Presentation Packages

3

X Y− pic Preamble The Matrix Environment

Arrows in Diagrams More Arrow Attributes

The xy Environment Knot Pictures

4

References

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 48 / 51

slide-65
SLIDE 65

References L

AT

EX Lamport, Leslie. L

A

T EX User’s Guide & Reference Manual Addison-Wesley Professional; 2 edition (June 30, 1994) Oetiker, Tobias et al. The Not So Short Introduction to L

AT

EX2ε

http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf

References Beamer: Kim,Ki-Joo. Beamer v3.0 Guide

http://us.share.geocities.com/kijoo2000/beamer_guide.pdf

Matloff, Norm. Quick Tutorial on the Beamer Package for Slide Making in L

AT

EX

http://heather.cs.ucdavis.edu/˜matloff/beamer.html

Tantau, Till. User’s Guide to the Beamer Class, Version 3.01

http://latex-beamer.sourceforge.net

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 49 / 51

slide-66
SLIDE 66

References X Y− pic: Fischer, Lars. Drawing knot pictures using L

A

T EX with X Y− pic -An introduction and tutorial

http://www.lars.fischer.de.vu

Lauda, Aaron X Y− pic Tutorial: Strings, Cobordisms, Braids and Lots More

http://www.dpmms.cam.ac.uk/ ˜al366/xyintroduction/

T EX User’s Group. X Y− pic - Typesetting graphs and diagrams in T EX

http://tug.org/applications/Xy-pic/

It contains the following:

  • Rose, Kristoffer. X

Y− pic User’s guide

  • Rose, Kristoffer and Moore, Ross. X

Y− pic Reference Manual

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 50 / 51

slide-67
SLIDE 67

Answer to the exercise:

A

f

  • f

B

  • g
  • B

g

C

$$\xymatrix{ A \ar[d]_f \ar[r]ˆf & B \ar @{}[dl]| {\circlearrowright} \ar[d]ˆg \\ B \ar[r]_g & C }$$

Fanny & Kerry (GWU) Useful L

AT

EX Packages March 4, 2007 51 / 51