Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to do something that TikZ is probably more than capable of doing, but I am lazy so I'm trying to do it in xy-pic instead. What I am trying to do is write down an equation involving xymatrices, e.g. [thing1] = [thing2] + [thing3] where all three [thing]s are xymatrices. The problem when I naively try to do this is that the equal signs are aligning with the first row of the xymatrices, and I would really like them to be centered instead, in between the first and second rows. (Or, you know, wherever the center of the rows happens to be.)

What's an easy way to do this?

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted
\[
  \vcenter{\xymatrix{A\\B}} = \vcenter{\xymatrix{a\\b}}
\]
share|improve this answer
1  
Many thanks! Just as simple as I thought it would be. –  Qiaochu Yuan Feb 5 '11 at 17:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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