TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 10 down vote accepted

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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