4
\begin{tikzcd}
A \arrow{rr}\arrow{dr} &              & B \arrow{rr}\arrow{dl} & & C \\
                       & D \arrow{dr}                                \\
                       &              & E
\end{tikzcd}

enter image description here

In the above code, how do I draw an arrow from C to E?

4
  • Thanks @marmot for your reply, but it does not work....
    – Beginner
    Commented Jan 8, 2019 at 19:43
  • I edited your code so now you can guess the direction for the desired arrow.
    – Sigur
    Commented Jan 8, 2019 at 20:52
  • By the way, there is an extra column unnecessary before C. Your diagram could have four columns, so three & is enough.
    – Sigur
    Commented Jan 8, 2019 at 20:54
  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. Commented Apr 1, 2019 at 20:42

1 Answer 1

5

You need \arrow[ddll].

Here's a version with parallel arrows, due to the between origins specification. I added an example where the objects are wider; you may want to increase the column separation, but you have to decide it only after seeing the result.

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

\begin{document}

\[
\begin{tikzcd}[column sep={3em,between origins}]
A \arrow[rr]\arrow[dr] &&
B \arrow[rr] \arrow[dl,dashed] &&
C \arrow[ddll] \\
& D \\
&& E \arrow[ul]
\end{tikzcd}
\]

\[
\begin{tikzcd}[column sep={3em,between origins}]
\bigoplus_i A_i \arrow[rr]\arrow[dr] &&
\prod_j B_j \arrow[rr] \arrow[dl,dashed] &&
C \arrow[ddll] \\
& D \\
&& E \arrow[ul]
\end{tikzcd}
\]

\end{document}

enter image description here

1
  • Yes, much better than my answer (which I did not mean to write anyway). +1
    – user121799
    Commented Jan 8, 2019 at 21:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .