\usepackage{tikz}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing}
\begin{tikzpicture}[scale=1.5]
\node (A) at (1,0) {$0$};
\node (B) at (2,0) {$H^1(G/H,M^H$};
\node (C) at (3,0) {$H^1(G,M)$};
\node (D) at (4,0) {$H^1(H,M)$};
\path[->,font=\scriptsize,>=angle 90]
(A) edge node[above]{} (B)
(B) edge node[above]{$\textnormal{Inf}$} (C)
(C) edge node[above]{$\textnormal{Res}$} (D);
\end{tikzpicture}
我正在用此代码编写 LaTeX 文档,虽然图表以正确的顺序显示,但由于序列中元素的长度,它们被挤在一起。我该如何解决这个问题?
答案1
您想要使用tikz-cd
:
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\DeclareMathOperator{\Inf}{Inf}
\DeclareMathOperator{\Res}{Res}
\begin{document}
\begin{tikzcd}
0 \arrow{r} &
H^1(G/H,M^H) \arrow{r}{\Inf} &
H^1(G,M) \arrow{r}{\Res} &
H^1(H,M)
\end{tikzcd}
\end{document}