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 1234382136|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

armymathlattice.png

Army Math Lattice

(last edited on 1229447877|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

dotcross.png

Dot and Cross Products & Vector Identities

(last edited on 1232982682|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

goarmy.png

"Go Army" & "elisha" Ambigrams

(last edited on 1229524531|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

pascalshaded.png

Pascal's Triangle

(last edited on 1229524809|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

pentagons.png

Pentagons

(last edited on 1229524918|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

prettysimplerecurrence.png

Pretty Simple Loop Recurrence

(last edited on 1232392873|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

sl2sum3relation.png

Trace Relations via Binor Identity

(last edited on 1225194783|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

triplevector.png

Triple Vector Product Identity

(last edited on 1225190439|%e %b %Y, %H:%M %Z|agohover by elishapetersonelishapeterson)

All Snippets (sorted by title)

  1. 6j Symbols last edited 1232983360|%O ago (%e %b %Y) by elishapetersonelishapeterson
  2. Admissibility last edited 1234382136|%O ago (%e %b %Y) by elishapetersonelishapeterson
  3. Army Math Lattice last edited 1229447877|%O ago (%e %b %Y) by elishapetersonelishapeterson
  4. Central Functions of Rank 1-3 last edited 1234381543|%O ago (%e %b %Y) by elishapetersonelishapeterson
  5. Dot and Cross Products & Vector Identities last edited 1232982682|%O ago (%e %b %Y) by elishapetersonelishapeterson
  6. Examples for Various \tikzstyle keys last edited 1232662052|%O ago (%e %b %Y) by elishapetersonelishapeterson
  7. Fundamental Binor Identity last edited 1225194589|%O ago (%e %b %Y) by elishapetersonelishapeterson
  8. Gluing an Edge at a Trivalent Trace Diagram Vertex last edited 1232982809|%O ago (%e %b %Y) by elishapetersonelishapeterson
  9. "Go Army" & "elisha" Ambigrams last edited 1229524531|%O ago (%e %b %Y) by elishapetersonelishapeterson
  10. Pascal's Triangle last edited 1229524809|%O ago (%e %b %Y) by elishapetersonelishapeterson
  11. Pentagons last edited 1229524918|%O ago (%e %b %Y) by elishapetersonelishapeterson
  12. Pretty Simple Loop Recurrence last edited 1232392873|%O ago (%e %b %Y) by elishapetersonelishapeterson
  13. Simple Tensor Diagrams last edited 1234382065|%O ago (%e %b %Y) by elishapetersonelishapeterson
  14. Symmetrizers & Basic Trivalent Diagrams last edited 1234382370|%O ago (%e %b %Y) by elishapetersonelishapeterson
  15. Trace, Determinant, and Other Primitive Matrix Invariants last edited 1240324785|%O ago (%e %b %Y) by elishapetersonelishapeterson
  16. Trace Relations via Binor Identity last edited 1225194783|%O ago (%e %b %Y) by elishapetersonelishapeterson
  17. Transition Matrix last edited 1229525098|%O ago (%e %b %Y) by elishapetersonelishapeterson
  18. Triple Vector Product Identity last edited 1225190439|%O ago (%e %b %Y) by elishapetersonelishapeterson
  19. Trivalent Spin Networks & Identities last edited 1234382493|%O ago (%e %b %Y) by elishapetersonelishapeterson
  20. Vectors and Matrices in Trace Diagrams last edited 1234382262|%O ago (%e %b %Y) by elishapetersonelishapeterson

Recent Snippets (sorted by last edit date)

  1. Trace, Determinant, and Other Primitive Matrix Invariants last edited 1240324785|%O ago (%e %b %Y) by elishapetersonelishapeterson
  2. Trivalent Spin Networks & Identities last edited 1234382493|%O ago (%e %b %Y) by elishapetersonelishapeterson
  3. Symmetrizers & Basic Trivalent Diagrams last edited 1234382370|%O ago (%e %b %Y) by elishapetersonelishapeterson
  4. Vectors and Matrices in Trace Diagrams last edited 1234382262|%O ago (%e %b %Y) by elishapetersonelishapeterson
  5. Admissibility last edited 1234382136|%O ago (%e %b %Y) by elishapetersonelishapeterson
  6. Simple Tensor Diagrams last edited 1234382065|%O ago (%e %b %Y) by elishapetersonelishapeterson
  7. Central Functions of Rank 1-3 last edited 1234381543|%O ago (%e %b %Y) by elishapetersonelishapeterson
  8. 6j Symbols last edited 1232983360|%O ago (%e %b %Y) by elishapetersonelishapeterson
  9. Gluing an Edge at a Trivalent Trace Diagram Vertex last edited 1232982809|%O ago (%e %b %Y) by elishapetersonelishapeterson
  10. Dot and Cross Products & Vector Identities last edited 1232982682|%O ago (%e %b %Y) by elishapetersonelishapeterson
  11. Examples for Various \tikzstyle keys last edited 1232662052|%O ago (%e %b %Y) by elishapetersonelishapeterson
  12. Pretty Simple Loop Recurrence last edited 1232392873|%O ago (%e %b %Y) by elishapetersonelishapeterson
  13. Transition Matrix last edited 1229525098|%O ago (%e %b %Y) by elishapetersonelishapeterson
  14. Pentagons last edited 1229524918|%O ago (%e %b %Y) by elishapetersonelishapeterson
  15. Pascal's Triangle last edited 1229524809|%O ago (%e %b %Y) by elishapetersonelishapeterson
  16. "Go Army" & "elisha" Ambigrams last edited 1229524531|%O ago (%e %b %Y) by elishapetersonelishapeterson
  17. Army Math Lattice last edited 1229447877|%O ago (%e %b %Y) by elishapetersonelishapeterson
  18. Trace Relations via Binor Identity last edited 1225194783|%O ago (%e %b %Y) by elishapetersonelishapeterson
  19. Fundamental Binor Identity last edited 1225194589|%O ago (%e %b %Y) by elishapetersonelishapeterson
  20. Triple Vector Product Identity last edited 1225190439|%O ago (%e %b %Y) by elishapetersonelishapeterson
page_revision: 86, last_edited: 1239891315|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License