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 sometimes uses ~ to adjust space between symbols. Now I want to add some vertical space which play similar role, how do I do that?

(It's not about controlling space between lines, but just add some space, the real problem is like this: I put \displaystyle \int X, and X at the same time in an xymatrix, then the arrows are of different length because it thinks \displaystyle \int X occupied more vertical space than X. )

share|improve this question
up vote 3 down vote accepted

If you want to make Xy-pic think that the node with just X takes up the same vertical space as \displaystyle\int X, you can use a \vphantom. For example, if you type

    \displaystyle \int X \ar[r] \ar[d]
    & {\vphantom{\displaystyle \int}X} \ar[d]\\
    {A} \ar[r]
    & {B}

then you'll get

enter image description here

share|improve this answer

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.