I want to draw 2 parallel arrows in the xy matrix environment.

Basically instead of the standard arrow (\ar[r]), I want to have something like \begin{smallmatrix}\longrightarrow\\\longrightarrow\end{smallmatrix}.

I tried leaving the arrow blank and just writing $$\xymatrix{\begin{smallmatrix}\longrightarrow\\\longrightarrow\end{smallmatrix}}$$, but its not working.

Edit: I need it to write two simplicial objects and arrows between them.


this coding works.

 A \ar@<-.5ex>[r] \ar@<.5ex>[r] & B

it's necessary to offset the arrows explicitly from the usual axis alignment in order for them to appear separately. you might prefer different values for the separation, but it seems reasonable to offset them by an equal amount plus/minus.

i didn't find the exact coding in the manual, but there were some examples that looked promising. this solution was arrived at after some experimenting.

  • 1
    Thank you very much. Exactly what I was looking for, works like a charm. – I.P Sep 21 '13 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.