Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 down vote accepted

this coding works.

\[
\xymatrix{
 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

 
discard

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.