\[
\begin{tikzpicture}[scale=2]
\matrix(m)[matrix of math nodes,column sep=1cm,row sep=0.5cm]{
0 & E(K)[m] & E(K) & E(K) \\
& H^1(G_{\bar{K}/K},E[m]) & H^1(G_{\bar{K}/K},E(\bar{K}) & H^1(G_{\bar{K}/K},E(\bar{K})) \\
};
\draw[->,font=\scriptsize,every node/.style={above},rounded corners]
(m-1-1) edge (m-1-2)
(m-1-2) edge (m-1-3)
(m-1-3) edge["$m$"] (m-1-4)
(m-1-4.east) --+(5pt,0)|-+(0,-7.5pt)-|([xshift=-5pt]m-2-2.west)--(m-2-2.west)
(m-2-2) edge (m-2-3)
(m-2-3) edge["$m$"] (m-2-4)
;
\end{tikzpicture}
\]
奇怪的是,我无法将 $[m]$ 作为标签,而只能使用 $m$。不过其他类型的括号似乎可以。为什么?
答案1
您需要一对额外的括号来隐藏内部的方括号:
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{matrix,quotes}
\begin{document}
\[
\begin{tikzpicture}[scale=2]
\matrix(m)[matrix of math nodes,column sep=1cm,row sep=0.5cm]{
0 & E(K)[m] & E(K) & E(K) \\
& H^1(G_{\bar{K}/K},E[m]) & H^1(G_{\bar{K}/K},E(\bar{K}) & H^1(G_{\bar{K}/K},E(\bar{K})) \\
};
\draw[->,font=\scriptsize,every node/.style={above},rounded corners]
(m-1-1) edge (m-1-2)
(m-1-2) edge (m-1-3)
(m-1-3) edge["{$[m]$}"] (m-1-4)
(m-1-4.east) --+(5pt,0)|-+(0,-7.5pt)-|([xshift=-5pt]m-2-2.west)--(m-2-2.west)
(m-2-2) edge (m-2-3)
(m-2-3) edge["{$[m]$}"] (m-2-4)
;
\end{tikzpicture}
\]
\end{document}