如何将其编码到XY-Pic包中?
答案1
我建议tikz-cd
,你可以在下面的代码中看到为什么。
\documentclass{article}
\usepackage{amsmath}
\usepackage[all,cmtip]{xy} % first solution
\usepackage{tikz-cd} % second solution
\begin{document}
\[ % xy
\xymatrix{
A \ar[r]^f \ar@/_1.2pc/[rr]_{g\circ f} &
B \ar[r]^g \ar@/^1.2pc/[rr]^{h\circ g} &
C \ar[r]^h &
D
}
\]
\[ % tikz-cd
\begin{tikzcd}
A \arrow[r,"f"] \arrow[rr,bend right,"g\circ f"'] &
B \arrow[r,"g"] \arrow[rr,bend left,"h\circ g"] &
C \arrow[r,"h"] &
D
\end{tikzcd}
\]
\end{document}