答案1
tikz-cd
使用和很容易做到mathtools
:
\documentclass{article}
\usepackage{mathtools}
\usepackage{tikz-cd}
\begin{document}
\[ \begin{tikzcd}
0 \arrow[r] & \prescript{}{R}{A} \arrow[r, "\theta"] \arrow[d, "\phi", swap] & \prescript{}{R}{B}\arrow[dl, "\Psi"] \\%
& \prescript{}{R}{X}
\end{tikzcd}
\]
\end{document}
答案2
使用这种方法tikz
将产生具有更多开放代码的相同图表:更容易注释掉、删除或编辑单独的行。
\documentclass[12pt,a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[auto, node distance=1.0cm,
block/.style={ minimum height=2em, minimum width=3em}
]
% upper figure nodes
\node[block] (Zeup){0};
\node[right=of Zeup, block](ARup){$A_R$};
\node[right=of ARup, block](BRup){$B_R$};
\node[below=of ARup, block](XRup){$X_R$};
\node[right=of BRup, block](exup){exact};
% lower figure nodes
\node[below=of XRup, block](ARlo){$A_R$};
\node[left= of ARlo, block](Zelo){0};
\node[right=of ARlo, block](BRlo){$B_R$};
\node[below=of ARlo, block](XRlo){$X_R$};
\node[right=of BRlo, block](exlo){exact};
% upper arrows
\draw[->] (Zeup) -- (ARup);
\draw[->] (ARup) -- node[pos=0.5,above]{$\theta$}(BRup);
\draw[->] (ARup) -- node[pos=0.5,left]{$\phi$} (XRup);
% lower arrows
\draw[->] (Zelo) -- (ARlo);
\draw[->] (ARlo) -- node[pos=0.5,above]{$\theta$}(BRlo);
\draw[->] (ARlo) -- node[pos=0.5,left]{$\phi$} (XRlo);
\draw[->] (BRlo) -- node[pos=0.5,below,sloped]{$\Psi$} (XRlo);
\end{tikzpicture}
\end{document}