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 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:

diagram

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
add comment

1 Answer

up vote 3 down vote accepted

You can emulate it by using fake rows:

\documentclass{article}
\usepackage[all,cmtip]{xy}
\begin{document}
\[
\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 &
}
\]
\end{document}

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
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.