答案1
使用 相当容易tikz-cd
。
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd}
cc \arrow[r,shift left=1pt,harpoon,"a"] \arrow[d,shift left=1pt,harpoon,"r"] &
ct \arrow[l,shift left=1pt,harpoon,"b"] \arrow[d,shift left=1pt,harpoon,"r"]
\\
tc \arrow[r,shift left=1pt,harpoon,"a"] \arrow[u,shift left=1pt,harpoon,"l"] &
tt \arrow[l,shift left=1pt,harpoon,"b"] \arrow[u,shift left=1pt,harpoon,"l"]
\end{tikzcd}
\]
\end{document}
答案2
带包的版本xy
做起来并不简单。
\documentclass[a4paper,12pt]{article}
\usepackage[all,cmtip]{xy}
\begin{document}
\xymatrix@R=2pc@C=2pc{ cc \ar@<.2ex>@^{->}[r]^a \ar@<-.2ex>@^{_{<}-}[r]_b & ct \ar@<.2ex>@^{->}[d]^r \ar@<-.2ex>@^{_{<}-}[d]_l \\
tc \ar@<.2ex>@^{->}[u]^l \ar@<-.2ex>@^{_{<}-}[u]_r & tt\ar@<.2ex>@^{->}[l]^b \ar@<-.2ex>@^{_{<}-}[l]_a }
\end{document}