![两个长正合序列](https://linux22.com/image/396743/%E4%B8%A4%E4%B8%AA%E9%95%BF%E6%AD%A3%E5%90%88%E5%BA%8F%E5%88%97.png)
我想写一个由两个长正合序列组成的交换图,它们之间有映射。我写了以下代码,但无法编译。请帮忙。
\documentclass[12pt]{article}
\usepackage{tikz-cd}
\usepackage{amsmath,amsfonts,amssymb,amsthm,mathdots}
\begin{document}
\begin{center}
\begin{tikzcd}
\cdots \arrow{r}{d^{i-2}} \arrow{u} & X^{i-1}\arrow{u}\arrow{r}{d^{i-1}} & X^i \arrow{u} \arrow{r}{d^{i}} & X^{i-1} \arrow{u} \arrow{r}{d^{i+1}} & \cdots \arrow{u}\\ \cdots \arrow{r}{d_{i+2}} & X_{i+1} \arrow{r}{d_{i+1}} & X_i \arrow{r}{d_{i}} & X_{i+1} \arrow{r}{d_{i+1}} & \cdots
\end{tikzcd}
\end{center}
\end{document}
代码有点乱,抱歉。
答案1
第一行的箭头方向错误。u
您应该使用 (向下)而不是d
(向上) :
\documentclass[margin=3mm]{standalone}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
\cdots \arrow{r}{d^{i-2}} \arrow{d}
& X^{i-1}\arrow{d}\arrow{r}{d^{i-1}}
& X^i \arrow{d} \arrow{r}{d^{i}}
& X^{i-1} \arrow{d} \arrow{r}{d^{i+1}}
& \cdots \arrow{d}\\
\cdots \arrow{r}{d_{i+2}}
& X_{i+1} \arrow{r}{d_{i+1}}
& X_i \arrow{r}{d_{i}}
& X_{i+1} \arrow{r}{d_{i+1}}
& \cdots
\end{tikzcd}
\end{document}