TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 5 down vote accepted
  \vcenter{\xymatrix{A\\B}} = \vcenter{\xymatrix{a\\b}}
share|improve this answer
Many thanks! Just as simple as I thought it would be. – Qiaochu Yuan Feb 5 '11 at 17:13

Your Answer


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.