PGF/TikZ Code Snippets

Snippet Tags:

Snippets by Date:

This page is a catalog for various PGF/TikZ snippets. Click on the picture to see a larger version, or click on the title to see the source code. Note that several of these snippets use the \tikzstyle keys defined in tikzstyledefs.tex and described in more detail on my Trace Diagrams with TikZ Page.

PGF (Portable Graphics Format) & TikZ (TikZ ist kein Zeichenprogramm) are a combination of \$\TeX\$ packages that can be used for generating high-quality graphics using a \$\LaTeX\$-like syntax. I like TikZ because it generates graphics on the fly, without the need for separate files for each picture… this is a lifesaver for papers that have hundreds of diagrams. It is also has a very natural and intuitive syntax. For example, the command to draw a line between \$(0,0)\$ and \$(1,1)\$ is \tikz{ \draw(0,0)to(1,1); } See this tutorial at the pracTeX Journal for help on getting started with PGF/TikZ. The instructions here require version 2.00 which is available at http://sourceforge.net/projects/pgf/, with documentation here. Another great resource is this PGF/TikZ Gallery.

# Featured Snippets

Dot and Cross Products & Vector Identities

(last edited on 15 Feb 2010 15:44 by )

Pretty Simple Loop Recurrence

(last edited on 19 Jan 2009 19:21 by )

# All Snippets (sorted by title)

1. Dot and Cross Products & Vector Identities last edited 15 Feb 2010 15:44 by
2. Pretty Simple Loop Recurrence last edited 19 Jan 2009 19:21 by
3. Vectors and Matrices in Trace Diagrams last edited 15 Feb 2010 15:40 by

# Recent Snippets (sorted by last edit date)

1. Dot and Cross Products & Vector Identities last edited 15 Feb 2010 15:44 by
2. Vectors and Matrices in Trace Diagrams last edited 15 Feb 2010 15:40 by
3. Pretty Simple Loop Recurrence last edited 19 Jan 2009 19:21 by
page revision: 87, last edited: 22 Nov 2009 12:40