How can I do a diagram like this

enter image description here

using xymatrix? I don't want the diagram to extend for three lines (otherwise I could do the abo above diagram easily).


1 Answer 1


You can change the arrow tips and the spacing between rows and columns.

%\usepackage[all,cmtip]{xy} % to use cm arrow tip

\xymatrix@C=1cm{x\ar[r]^{a} & y} \qquad
\xymatrix{\ar@{|->}[r]^{T} & }   \qquad
\xymatrix@C=1cm@R=1cm{F(x)\ar[r]^{F(a)}\ar[d] & F(y) \ar[d] \\ G(x)\ar[r]_{G(a)} & G(y) } 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.