Xypic
Xypic
Xypic
Cameron McLeman
Department of Mathematics
The University of Arizona
LATEXpackage.
Developed principally by Kris Rose and Ross Moore.
Large community support base.
Preamble: \usepackage[all]{xy}.
Extra output on compile.
M c L
E M A N
Compare \xymatrix{M&c&L\\E&M&A&N}
M c L
E M A N
to \xymatrix@C=1pc@R=1pc{M&c&L\\E&M&A&N}
M c L
E M A N
MO c @OOO
@@ OOO L
@@ OOO
@@ OOO
@ OOO
'
Eo M A N
Note that a \ar[r] from the “L” or a \ar[d] from the “A” give
errors.
Use an @-modifier to change the arrow style (tail, shaft, and head):
Code Style Comments
\ar@{->>} // Surjection
\ar@{-->} _ _ _/ Implied Existence
/
\ar@{|->} Defined on Elements
/
\ar@{^(->} Injection
\ar@{_(->} / Bizarro Injection
\ar@{-} Field Extension
\ar@{~>} /o /o /o / Functorial Correspondence
\ar@{=>} +3 Implies
\ar@3{~>>} /o/o o//o _*_*4 4 Strongly sort of implies
/o /o /o o
\ar@{||~<} Umm...quasipseudoisomorphism...
Note: Design your own!
A
a //B
b
Bp ⊕ B0
Q
σp +ψp
0 /A / τ /C /0
p|p
vs.
σp +ψp
/A / Bp ⊕ B0
τ /C /0
Q
0
p|p
\xymatrix{A\ar[r]|\phi&B}
A φ /B
\xymatrix{A\ar’[rr][rrr]&&&B}
A /B
P
h
g
X /Y /0
f
?
Cp B C
/
/ Qp
r Zp ^<< _?
?
rrr << ??
rr << ??
rrr << ??
r
yyrrr .N /O 1
/Q
A
Fp Z R
/
qq
Zp
_>>
Qp
`@
@
qq >> @@
qqqq >> @@
qq >> @@
qx x qq /O /O 0
/Q
Fp Z
A / 8& B
AF
A =B
Universal properties:
ZF
F x
∃!F
F#
%/
y
X ×S Y p X
q
Y /S
ED
BC
A B C
“Start out of the r side of C, make a 14 -turn towards [d], continue the
same direction and then make a quarter turn toward [l]”.
\xymatrix{A&B&C
\ar@{-} ‘r[d] ‘[l] \\
&&}
ED
BC
··· / H i (A) / H i (B) / H i (C)
GF
@A
δ
XY-pic:
Name comes from xy-coordinates.
\xymatrix is just a front-end.
More flexible, less intuitive.
Basic commands:
Set up coordinates.
Make something and put is somewhere.
Connect two things.
Ban ana
Use **{-} for straight lines.
A /B
\[\begin{xy}
(0,0)*+{A}="A";
(20,0)*+{B}="B";
**\crv{(5,10)&(15,-10)};
\end{xy}\]
A B
ED
BC
··· / H i (A) / H i (B) / H i (C)
GF
@A
_________________________________
δ
•
•
Shading via:
(0,-5)*\ellipse(3,1){.};
(0,-5)*\ellipse(3,1)__,=:a(-180){-};
e 9
α
•x β
αβα−1 β −1 = 1