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 am trying to draw "distributive arrows" in xypic, but I can't make it look nice. Here is a MWE:

\xymatrix{a\ar @/^1.4pc/[r]  \ar @/^1.4pc/[rrr]  &( b &+& c)}

Does anyone know how to do this well?

share|improve this question
    
Hi Andrew, Welcome to TeX.SE! I indented your code using {}, and removed the thanks- it seems strange, but it helps to keep the site more 'Question & Answer' oriented. Could you turn your snippet into a complete MWE? It really helps folks who want to help. –  cmhughes Mar 21 '12 at 16:33
    
Using another package instead of xy would be an option for you? –  Gonzalo Medina Mar 21 '12 at 17:53
    
I would be open to using another package, if I could get it to work well. –  Andrew Mar 21 '12 at 21:33
    
What do you mean by "well"? Matsaya has already provided an answer; is it something like that what you want or do you want anything different? –  Gonzalo Medina Mar 22 '12 at 2:49
add comment

1 Answer 1

Here is a little modification of your code :

\documentclass{article}
\usepackage[all]{xy}
\begin{document}
\xymatrix@C=0.5cm{a\ar @/^1pc/[rr]  \ar @/^2pc/[rrrr]  &&( b &+& c)}
\end{document}

I put one extra column between a and b, change the curving of the first arrow and the size of the column entries (with @C=0.5cm).

But I prefer another way to place the +: use an empty arrow, like that

\documentclass{article}
\usepackage[all]{xy}
\begin{document}
\xymatrix{a\ar @/^1pc/[r]  \ar @/^2pc/[rr]  &( b\ar@{}[r]|{+} & c)}
\end{document}

The results is more or less the same, but the code is less cumbersome.

And the results :

enter image description here

share|improve this answer
    
Thank you. That looks a lot better than what I originally had. –  Andrew Mar 21 '12 at 23:02
add comment

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.