这是代码;我想反转它的箭头而不改变任何集合的位置:
\begin{center}
\begin{tikzcd}
& N_1 \ar{rd}{j_1}\\
N\ar{ru}{i_1} \ar{r}{i_2}\ar{rd}[swap]{i_3} & N_2 \ar{r}{j_2} & N'\\
& N_3 \ar{ru}[swap]{j_3}
\end{tikzcd}
\end{center}
答案1
您只需使用选项更改默认箭头类型,arrows=<-
而无需对图表代码进行其他更改。我使用“现代”箭头语法。
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
A commutative diagram and its dual
\[
\begin{tikzcd}
& N_1 \ar[rd,"j_1"]\\
N \ar[ru,"i_1"] \ar{r}{i_2} \ar[rd,"i_3"'] & N_2 \ar[r,"j_2"] & N'\\
& N_3 \ar[ru,"j_3"']
\end{tikzcd}
\qquad
\begin{tikzcd}[arrows=<-]
& N_1 \ar[rd,"j_1"]\\
N \ar[ru,"i_1"] \ar{r}{i_2} \ar[rd,"i_3"'] & N_2 \ar[r,"j_2"] & N'\\
& N_3 \ar[ru,"j_3"']
\end{tikzcd}
\]
\end{document}
答案2
这里是:
\documentclass[11pt,twoside]{book}
\usepackage{tikz-cd}
\begin{document}
\begin{center}
\begin{tikzcd}
& N_1 \ar{rd}{j_1}\\
N\ar{ru}{i_1} \ar{r}{i_2}\ar{rd}[swap]{i_3} & N_2 \ar{r}{j_2} & N'\\
& N_3 \ar{ru}[swap]{j_3}
\end{tikzcd}
\end{center}
\[ \begin{tikzcd}
& N_1 \ar{dl}[swap]{i_1}\\
N& N_2 \ar{l}{i_2} & N' \ar{ul}[swap]{j_1}\ar{l}{j_2}\ar{dl}{j_3} \\
& N_3 \ar{ul}{i_3}
\end{tikzcd} \]%
\end{document}