PGF/TikZ Code Snippets

Snippet Tags:

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

admissibilityex.png

Admissibility

(last edited on 11 Feb 2009 19:55 by elishapetersonelishapeterson)

armymathlattice.png

Army Math Lattice

(last edited on 16 Dec 2008 17:17 by elishapetersonelishapeterson)

dotcross.png

Dot and Cross Products & Vector Identities

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

goarmy.png

"Go Army" & "elisha" Ambigrams

(last edited on 17 Dec 2008 14:35 by elishapetersonelishapeterson)

pascalshaded.png

Pascal's Triangle

(last edited on 17 Dec 2008 14:40 by elishapetersonelishapeterson)

pentagons.png

Pentagons

(last edited on 17 Dec 2008 14:41 by elishapetersonelishapeterson)

prettysimplerecurrence.png

Pretty Simple Loop Recurrence

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

sl2sum3relation.png

Trace Relations via Binor Identity

(last edited on 28 Oct 2008 11:53 by elishapetersonelishapeterson)

triplevector.png

Triple Vector Product Identity

(last edited on 15 Feb 2010 15:31 by elishapetersonelishapeterson)

All Snippets (sorted by title)

  1. 6j Symbols last edited 26 Jan 2009 15:22 by elishapetersonelishapeterson
  2. Admissibility last edited 11 Feb 2009 19:55 by elishapetersonelishapeterson
  3. Army Math Lattice last edited 16 Dec 2008 17:17 by elishapetersonelishapeterson
  4. Central Functions of Rank 1-3 last edited 11 Feb 2009 19:45 by elishapetersonelishapeterson
  5. Dot and Cross Products & Vector Identities last edited 15 Feb 2010 15:44 by elishapetersonelishapeterson
  6. Examples for Various \tikzstyle keys last edited 15 Feb 2010 15:01 by elishapetersonelishapeterson
  7. Fundamental Binor Identity last edited 28 Oct 2008 11:49 by elishapetersonelishapeterson
  8. Gluing an Edge at a Trivalent Trace Diagram Vertex last edited 26 Jan 2009 15:13 by elishapetersonelishapeterson
  9. "Go Army" & "elisha" Ambigrams last edited 17 Dec 2008 14:35 by elishapetersonelishapeterson
  10. Matrix Minors and Cofactors last edited 03 Mar 2010 13:59 by elishapetersonelishapeterson
  11. Pascal's Triangle last edited 17 Dec 2008 14:40 by elishapetersonelishapeterson
  12. Pentagons last edited 17 Dec 2008 14:41 by elishapetersonelishapeterson
  13. Pretty Simple Loop Recurrence last edited 19 Jan 2009 19:21 by elishapetersonelishapeterson
  14. Simple Tensor Diagrams last edited 11 Feb 2009 19:54 by elishapetersonelishapeterson
  15. Symmetrizers & Basic Trivalent Diagrams last edited 11 Feb 2009 19:59 by elishapetersonelishapeterson
  16. Trace, Determinant, and Other Primitive Matrix Invariants last edited 15 Feb 2010 16:36 by elishapetersonelishapeterson
  17. Trace Relations via Binor Identity last edited 28 Oct 2008 11:53 by elishapetersonelishapeterson
  18. Transition Matrix last edited 17 Dec 2008 14:44 by elishapetersonelishapeterson
  19. Triple Vector Product Identity last edited 15 Feb 2010 15:31 by elishapetersonelishapeterson
  20. Trivalent Spin Networks & Identities last edited 11 Feb 2009 20:01 by elishapetersonelishapeterson
  21. Vectors and Matrices in Trace Diagrams last edited 15 Feb 2010 15:40 by elishapetersonelishapeterson

Recent Snippets (sorted by last edit date)

  1. Matrix Minors and Cofactors last edited 03 Mar 2010 13:59 by elishapetersonelishapeterson
  2. Trace, Determinant, and Other Primitive Matrix Invariants last edited 15 Feb 2010 16:36 by elishapetersonelishapeterson
  3. Dot and Cross Products & Vector Identities last edited 15 Feb 2010 15:44 by elishapetersonelishapeterson
  4. Vectors and Matrices in Trace Diagrams last edited 15 Feb 2010 15:40 by elishapetersonelishapeterson
  5. Triple Vector Product Identity last edited 15 Feb 2010 15:31 by elishapetersonelishapeterson
  6. Examples for Various \tikzstyle keys last edited 15 Feb 2010 15:01 by elishapetersonelishapeterson
  7. Trivalent Spin Networks & Identities last edited 11 Feb 2009 20:01 by elishapetersonelishapeterson
  8. Symmetrizers & Basic Trivalent Diagrams last edited 11 Feb 2009 19:59 by elishapetersonelishapeterson
  9. Admissibility last edited 11 Feb 2009 19:55 by elishapetersonelishapeterson
  10. Simple Tensor Diagrams last edited 11 Feb 2009 19:54 by elishapetersonelishapeterson
  11. Central Functions of Rank 1-3 last edited 11 Feb 2009 19:45 by elishapetersonelishapeterson
  12. 6j Symbols last edited 26 Jan 2009 15:22 by elishapetersonelishapeterson
  13. Gluing an Edge at a Trivalent Trace Diagram Vertex last edited 26 Jan 2009 15:13 by elishapetersonelishapeterson
  14. Pretty Simple Loop Recurrence last edited 19 Jan 2009 19:21 by elishapetersonelishapeterson
  15. Transition Matrix last edited 17 Dec 2008 14:44 by elishapetersonelishapeterson
  16. Pentagons last edited 17 Dec 2008 14:41 by elishapetersonelishapeterson
  17. Pascal's Triangle last edited 17 Dec 2008 14:40 by elishapetersonelishapeterson
  18. "Go Army" & "elisha" Ambigrams last edited 17 Dec 2008 14:35 by elishapetersonelishapeterson
  19. Army Math Lattice last edited 16 Dec 2008 17:17 by elishapetersonelishapeterson
  20. Trace Relations via Binor Identity last edited 28 Oct 2008 11:53 by elishapetersonelishapeterson
  21. Fundamental Binor Identity last edited 28 Oct 2008 11:49 by elishapetersonelishapeterson
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License