考虑
\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}
如何从左上角节点到右下角节点绘制对角箭头?此外,如何绘制与此箭头平行的箭头?我查看了该包的文档,但找不到答案。
答案1
下面是它,具有简化的语法和更漂亮的箭头提示(在我看来......):
\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}