4

I have troubles trying to bend double arrows in XYpic. Here is my code at the moment:

\documentclass{article}
\usepackage[all]{xy}
\begin{document}
\[
\xymatrix{
\ar@2 `r[r] [dr] &
\\
& &
}
\]
\end{document}

The problem seems to be that the ar@2 part is not applied where the arrow is bent. Is there an easy way to fix that?

1

I can offer you a version with . This package is much more modern and you should consider changing to this.

% arara: pdflatex

\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
    \[
    \begin{tikzcd}
    \arrow[Rightarrow, to path=-| (\tikztotarget), rounded corners=10]{dr} & \\
    & \null
    \end{tikzcd}
    \]
\end{document}

enter image description here


As a compromise towards xy I can just offer this:

% arara: pdflatex

\documentclass{article}
\usepackage[all,cmtip]{xy}

\begin{document}
\[
\xymatrix{
    \ar@/^1pc/@{=>}[dr] &
    \\
    & &
}
\]
\end{document}

Not the same curve, but it shows in the same direction :-) But it looks totally ugly.

enter image description here

  • Thank you, but I have to stick with xyfor the time being because I am using some custom shafts (namely: 3 and 4-cells) and I don't know how to make them in tikz-cd. Also I knew about the @/^/ trick but it is quite limited for more complicated examples. – Maxime Lucas Feb 20 '15 at 15:21
  • @skysurf3000 Well, if you want, you can give me that custom stuff and I translate it into TikZ. If it is not too much. – LaRiFaRi Feb 20 '15 at 16:19
  • In standard xy you can make triple arrows thanks to \ar@3 (which looks like \Rrightarrow). The custom thing I use extends that to \ar@4 to make quadruple arrows. I put the code there if you want to take a look: (pastebin.com/xE06FVWA). – Maxime Lucas Feb 23 '15 at 14:17

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.