{xy-pic} or {xy} is a package for typesetting graphs and {commutative-diagrams} using the principle of "logical composition of visual components."
xy-pic is a package for typesetting graphs and commutative-diagrams 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.
}\]
Some reference guides
- Introductory slideshow
- Users' guide
- Reference manual: this is the most comprehensive, but hardest to learn from.
