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'd like to create a figure using XY-pic in which one cell actually spans two rows (like \multirow). Should look something like:

1,1       1,3
     BIG
2,1       3,3

With arrows from 1,1 and 2,1 to BIG and from BIG to 1,3 and 3,3.

\documentclass[11pt]{article}
\usepackage[all,cmtip]{xy}
\usepackage{multirow}
\begin{document}
\begin{equation}
\xymatrix{
1,1 \ar[dr] & & 1,3 \\
2,1 \ar[r] & \multirow{2}{*}{BIG} \ar[ur] \ar[r] & 2,3 \\
}
\end{equation}
\end{document}

I feel like there is a modifier on the element (some kind of *+5pt{BIG}) that would work, but I don't grok the Xy-pic user's manual. I did find some black magic that would shift the cell up but also increased the space between rows. Thanks for the help!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Use three rows and reduce the spacing between them:

\documentclass{standalone}
\usepackage[all,cmtip,pdf]{xy}

\begin{document}

\xymatrix@R-1pc{
  1,1 \ar[dr] && 1,2 \\
  & BIG \ar[ur] \ar[dr] \\
  2,1 \ar[ur] && 2,2
}

\end{document}

Test

share|improve this answer
    
Unfortunately, this hack won't work for me afaict. The MWE is actually a part of a much larger table. Maybe I could figure out how to collapse them... –  Jake Biesinger Jul 12 '11 at 22:29
    
Okay, so after some extensive reworking of the table, this solution hacked it. Thanks! –  Jake Biesinger Jul 12 '11 at 22:44

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.