![交换图中的箭头](https://linux22.com/image/462955/%E4%BA%A4%E6%8D%A2%E5%9B%BE%E4%B8%AD%E7%9A%84%E7%AE%AD%E5%A4%B4.png)
我想请求帮助调整下图所示的图表,特别是将第三个方块的顶部和底部线条上的箭头朝向左侧。我尝试使用提供的代码来实现更改,但似乎没有产生预期的结果。任何帮助解决此问题的方法都将不胜感激。提前谢谢您。
\begin{tikzcd}[column sep=large,row sep=large]
H^{3}(\mathbb S^{3}; \mathbb Z_2) \arrow[r, "\cong"] \arrow[d, "Sq^{2}"']
& H^{3}(\mathbb S^{3}\vee \mathbb S^{5}; \mathbb Z_2) \arrow[r, "\cong"]
\arrow[d, "Sq^{2}"']
& H^{3}(\Sigma\mathbb CP^{2}; \mathbb Z_2) \arrow[r, "\Sigma"] \arrow[d, "Sq^{2}"']
& H^{2}(\mathbb CP^{2}; \mathbb Z_2) \arrow[d, "Sq^{2}"] \\
H^{5}(\mathbb S^{3}; \mathbb Z_2) \arrow[r, ""]
& H^{5}(\mathbb S^{3}\vee \mathbb S^{5}; \mathbb Z_2) \arrow[r, "\cong"]
& H^{5}(\Sigma\mathbb CP^{2}; \mathbb Z_2) \arrow[r, "\Sigma"]
& H^{4}(\mathbb CP^{2}; \mathbb Z_2)
\end{tikzcd}
答案1
- 用于
\arrow[l]
向左的箭头(但将它们放在最右边的单元格中) - 用于
"<label>"'
将标签交换到另一侧 - 使用
\DeclareMathOperator
得到直立形状pr
和Sq
- 使用大
{...}
括号\mathbb
\documentclass{article}
\usepackage{tikz-cd, amssymb, amsmath}
\DeclareMathOperator{\Sq}{Sq}
\DeclareMathOperator{\pr}{pr}
\begin{document}
\begin{tikzcd}[column sep=large,row sep=large]
H^{3}(\mathbb{S}^{3}; \mathbb{Z}_2) \arrow[r, "\cong"', "\pr^*"] \arrow[d, "\Sq^{2}"']
& H^{3}(\mathbb{S}^{3}\vee \mathbb{S}^{5}; \mathbb{Z}_2) \arrow[r, "\cong"'] \arrow[d, "\Sq^{2}"]
& H^{3}(\Sigma\mathbb{CP}^{2}; \mathbb{Z}_2) \arrow[d, "\Sq^{2}"]
& H^{2}(\mathbb{CP}^{2}; \mathbb{Z}_2) \arrow[d, "\Sq^{2}"] \arrow[l, "\Sigma"', "\cong"] \\
H^{5}(\mathbb{S}^{3}; \mathbb{Z}_2) \arrow[r, "\pr^*"']
& H^{5}(\mathbb{S}^{3}\vee \mathbb{S}^{5}; \mathbb{Z}_2) \arrow[r, "\cong"]
& H^{5}(\Sigma\mathbb{CP}^{2}; \mathbb{Z}_2)
& H^{4}(\mathbb{CP}^{2}; \mathbb{Z}_2) \arrow[l, "\Sigma", "\cong"']
\end{tikzcd}
\end{document}