
我畫了這個圖。但我不知道如何使 d 和 e 之間的箭頭更長,使圖表變得更整齊。
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
a \arrow{r} \arrow{d} &b \arrow{r} &c \arrow{ld}\\
d\arrow{r} & e \arrow{r} & f \arrow{r} &g\\
h\arrow{r} \arrow{u} & i\arrow{u}
\end{tikzcd}
\end{document}
答案1
像這樣?
代碼:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
a \arrow{r} \arrow{d} &b \arrow{r} &c \arrow{d}\\
d\arrow{rr} & & e \arrow{r} & f \arrow{r} &g\\
h\arrow{rr} \arrow{u} & & i\arrow{u}
\end{tikzcd}
\end{document}
您需要在第二行和第三行中插入空白位置並將箭頭加倍。