0% found this document useful (0 votes)
823 views14 pages

Tikz Tutorial

A sample of drawings made with Tikz (LaTeX) that includes polygons, function plots, 3D graphs, etc. The source file contains the actual LaTeX commands: check "tikz-tutorial-tex-source.pdf"

Uploaded by

mitooquerer7260
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
823 views14 pages

Tikz Tutorial

A sample of drawings made with Tikz (LaTeX) that includes polygons, function plots, 3D graphs, etc. The source file contains the actual LaTeX commands: check "tikz-tutorial-tex-source.pdf"

Uploaded by

mitooquerer7260
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

AT X Tricks Tik Z /PGF and other L E Erica Shannon

Contents
1 Resources 2 Polygons 3 Subgroup Lattices 4 Coxeter graphs and Dynkin diagrams 5 Tableau(x) 6 Graphs of Functions 7 Vector Diagrams / Root Systems 8 Adding extra space in tables 1 2 3 4 5 6 11 14

Tik Z stands for Tik Z ist kein Zeichenprogramm; PGF stands for Portable Graphics Format.

Resources
Comprehensive Tik Z Manual: http://ftp.math.purdue.edu/mirrors/ctan.org/graphics/pgf/base/doc/generic/pgf/pgfmanual. pdf pgfplots Manual: http://www.bakoma-tex.com/doc/latex/pgfplots/pgfplots.pdf A nice tutorial for basic drawing using Tik Z : http://www.math.uni-leipzig.de/~hellmund/LaTeX/pgf-tut.pdf List of colors available from the dvipsnames package: http://en.wikibooks.org/wiki/LaTeX/Colors

Polygons

Here are some triangles with labels.

/3 1 2

/4 2 2 /6

3 2

/4 2 2

Here are some regular polygons, drawn using the foreach command for loops. n=3 n=4 n=5

n=6

n=7

n=8

The TikZ manual has examples of how to draw pretty much any type of shape or diagram you might come up with. In particular, theres a list of cool available node shapes starting on p.435. (Forbidden sign, clouds, magnifying glass, starburst, etc.)

Subgroup Lattices

There is supposed to be a Tik Z library (graphs) for typesetting graphs. However, I found it extremely dicult to get this library to work correctly (or at all!). As a result, the examples here are made using the standard Tik Z nodes and lines. S3 (123) (13) (23) (13)

{e} Heres a more complicated one: D8 = r, s

s, r2

sr, r2

sr2

r2

sr3

sr

{e}

Coxeter graphs and Dynkin diagrams

Finite Coxeter groups can be classied by their Coxeter graphs. An Bn Cn Dn 4 4 E7 E8 F4 H3 H4 E6 I2 (m) 5 5 m 4

If is an irreducible root system of rank , its Dynkin diagram is one of the following ( vertices in each case): A

E6 E7 E8 F4

G2

Tableau(x)

Heres a standard Young tableau. 1 2 3 7 Heres a domino tableau. 3 1 6 4 2 5 4 6 9 5 8 12 10 11

Both of these images use macros from Tyson Gern youll need to copy these from the header section.

Graphs of Functions
x2 2

Heres a simple graph of the function f (x) = x 3 2 1 2 1 1 2 3

+ 1.

Heres a graph of a piecewise linear function, with background grid. 2 1 2 1 1 2 3 1 2 3

Heres a graph of f (x) = sin(x) cos(x), with a shaded region. y 1 f (x) = sin(x) cos(x)

x
4 2 3 4

5 4

3 2

Heres another graph, this time with an annoyingly starred region. See p.393 of the Tik Z manual for a list of patterns. 10 8 6 4 2 x 1 2 3 4 f (x) = 6 4 sin(x) y

Heres a function and its tangent line. This graph has a legend. y 1 ln(2) x 1 2 f (x) = ln(x) y =x1

Here are some various blank axes for a student to draw a graph on. 4 3 2 1 x 6 5 4 3 2 1 1 2 3 4 1 2 3 4 5 6 y

y 3 2 1 x 5 4 3 2 1 1 2 3 1 2 3 4 5

Here are some 3d graphs.

0.5 2 0.5

10

2 2 2

Here is a 3d plot of a parameterized curve:

1 1 1

And a parameterized torus:

10

Vector Diagrams / Root Systems

Here are some 2d root systems. y 2 = 2 = 1 + 2

Type B2

1 = 1 2

y 2 = 22

Type C2

= 21 x 1 = 1 2

y 2 = 0, 23 = 0, cos

Type I2 (6)

1 =

1 , 23 2

= sin

, cos

11

Here are some root systems in 3d, using tikz-3dplot. z

Type A2

1 = 1 2 y = 1 3 x z s1 2 2 = 2 3

Type D3

3 = 2 + 3

1 = 1 2

= 1 + 2

x 2 = 2 3

12

z Type B3

3 = 3

1 = 1 2

= 1 + 2

x 2 = 2 3 z

3 = 23 Type C3

1 = 1 2 = 21 x 2 = 2 3 y

13

Adding extra space in tables

Heres a table with a little extra height added to the columns and extra padding added in the cells: x cos(x) sin(x) 0 1 0 /4 2/2 2/2 /2 0 1 3/4 2/2 2/2 1 0

14

You might also like