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.

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 have the following diagram:

\[ \xymatrix @!=1pc {
  & Z \ar@{.>}[d]^{\exists!h} \ar@/_1.2pc/[ddl]_{p'} \ar@/^1.2pc/[ddr]^{q'} & \\
  & X \times_S Y \ar[dl]_p\ar[dr]^q & \\
X \ar[dr]_f & & Y \ar[dl]^g \\
  & S & 
} \]

which looks like this:


I want to decrease the spacing between the second and third rows. I know about @R=xpc, but that will decrease the spacing between the first and second rows as well.

share|improve this question
up vote 5 down vote accepted

You can emulate it by using fake rows:

\xymatrix @C=1pc @R=.5pc{
  & Z \ar@{.>}[dd]^{\exists!h} \ar@/_.6pc/[dddl]_{p'} \ar@/^.6pc/[dddr]^{q'} & \\
  & X \times_S Y \ar[dl]_-p\ar[dr]^-q & \\
X \ar[ddr]_f & & Y \ar[ddl]^g \\
  & S &

enter image description here

share|improve this answer
Perfect, thanks! – Adeel Jul 6 '12 at 17:04
I thought that it was necessary to use & even in empty rows. You didn't use! – Sigur Jul 7 '12 at 2:26

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.