2

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).

2

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

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

\begin{document}
\[
\xymatrix@C=1cm{x\ar[r]^{a} & y} \qquad
\xymatrix{\ar@{|->}[r]^{T} & }   \qquad
\begin{gathered}
\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) } 
\end{gathered}
\]
\end{document}

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.