6

Does not arrows style or color option apply an arc in \xymatrix? Please let me know the way.

\documentclass{article}
\usepackage[arrow, matrix]{xy}
\begin{document}
  \[
    \xymatrix{
      A \ar@{.>} `d[r] `r[dr] [dr]& \\ & B
    }
  \]
\end{document}
7
  • Hello Yuki, welcome to the site. If you indent your lines with 4 spaces they are marked as code. So you don't need to escape the markup chars. Commented Dec 25, 2013 at 11:49
  • Oh, I had overlooked. Thanks for your advice. Commented Dec 25, 2013 at 11:58
  • Does Coloring arrows in \xymatrixhelp or Commutative diagram with curved arrows, colour, and changing the style of arrows you? Commented Dec 25, 2013 at 12:07
  • 1
    I could color or dot the straight parts of the arrow like your links, but the arc parts are not changed. Commented Dec 25, 2013 at 12:19
  • 2
    It might be a lot more flexible if you use the tikz-cd package instead. It is almost the same syntax, the arrow macros are named differently. Plus the bonus of all the tikz tricks Commented Dec 25, 2013 at 13:07

1 Answer 1

1

I do not manage to obtain your desired result with xy. But here you have a solution with tikz-cd:

% arara: pdflatex 

\documentclass{article}
\usepackage{tikz-cd}

\begin{document}
    \[
    \begin{tikzcd}
    A \arrow[draw=none]{dr}[name=aux, anchor = center]{} \arrow[rounded corners=7pt, dotted, red, to path={ (\tikztostart.south)
                      |- (aux.center) \tikztonodes
                      -| (\tikztotarget.north)
                      }]{dr}& \\
    & B
    \end{tikzcd}
  \]
\end{document}

enter image description here

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.