I have a very annoying issue with xypic. I'm trying to typeset an exact sequence, one of which morphisms is the inclusion, so I'd like to use the inclusion arrow ↪.
The problem is that when I use ANY style in the xypic@1 environment, I get several errors. This is the code I use:
\xymatrix@1{
0\ar[r]&{A)}\ar[r]&{B}\ar[r]&{C}\ar[r]& 0
}
and this runs harmoniously. The problems begin when I try to use any style (except @{} which is kind of frustrating). So the second arrow in my codeline would be like this: \ar @{^{(}->} [r] and I get the following errors, several times actually:
Xy-pic error: illegal : macro:->\es@use@shorthand > not valid. \xyerror@ ...#2}\fi \errmessage {Xy-pic error: #1}
! Extra }, or forgotten $. \objectbox #1->\hbox {$\m@th \objectstyle {#1} $}
Does anyone have any idea of why this occurs? I use TeXmaker 3 on opensuse 12.1 with TeXlive from TUG (not from the suse repos). Please, any help with be really appreciated!