Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
$\begingroup$It seems you have to use \begin{array} for diagrams like this. An example of how to do this can be found here: legacy-www.math.harvard.edu/texman/node27.html I have found this too much hassle and have avoided using diagrams in my answers for this reason.$\endgroup$
xymatrix
is available here) $\endgroup$