0

Consider

\begin{document}

 \usepackage{tikz-cd}

 \begin{tikzcd}
  T \arrow[r, "\eta T"] \arrow[swap, d, "T \eta" red ] 
  & T^2 \arrow[d, "\mu" red] \\
  T^2 \arrow[swap, r, red, "\mu" blue]
  & T 
  \end{tikzcd}

  \end{document}

How can I draw a diagonal arrow from the top left node to the bottom right node? In addition, how can I draw an arrow parallel to this arrow? I looked in the documentation for the package but could not find the answer.

4

1 Answer 1

3

Here it is, with the simplified syntax and nicer arrow tips (in my opinion…):

\documentclass[a4paper, 12pt]{article}
\usepackage{tikz-cd}

\begin{document}

\begin{tikzcd}[ arrows={-stealth}]
  T \rar["\eta T"] \dar[swap, "T \eta" red ]\drar[shift left]\drar[shift right]%
  & T^2 \dar["\mu" red] \\
  T^2 \rar[swap, red, "\mu" blue]
  & T
\end{tikzcd}

\end{document}

enter image description here

1
  • How to give two different name of the two diagonal arrows ?
    – Spectrum
    Mar 14 at 19:28

You must log in to answer this question.

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