About

{xy-pic} is a package for typesetting graphs and {commutative-diagrams} using the principle of "logical composition of visual components."

is a package for typesetting graphs and using the principle of "logical composition of visual components." See the xy-pic homepage for more information.

xy-pic uses an array-like syntax, separating objects with & and \\, and using \ar[(direction)] for arrows, as in the following example.

\[\xymatrix{
    A\ar[r]^f\ar[d] & B\ar[d]^h\\
    C\ar[r]_g & D.
}\]

enter image description here

Some reference guides

Frequently Asked Questions

  1. How can I draw the connecting homomorphism from the snake lemma?
  2. How can I draw braid diagrams in xy?
  3. How can I draw natural transformations (2-morphisms) with xy?
  4. How can I notate a pushout square in xy?
history | excerpt history