[Xy-pic] xypic question: Merging entries
Richard Lewis
xypic at rtf.org.uk
Wed May 19 11:13:27 CEST 2004
Pedro Adão <pad at math.ist.utl.pt> writes:
> I am trying to merge/collapse entries in a xypic matrix, for instance
>
> _________________
> | A | B | C | D |
> | FGH | IJK |
> | L | MNO | P |
>
> Can you help me?
not exactly what you asked for, but:
Solution 1: use xymatrix and extra cells
\[
\xymatrix at R=1.5em at C=.5em{ A & & B && C & & D \\
& FGH & && & IJK \\
L & & MNO && & & P}
\]
(the @R and @C make spacing comparable to
\[
\xymatrix{A & B & C & D\\
FGH & IJK\\
L & MNO & P}
\]
)
Solution 2: use xygraph with fractional hops
\[
\newgraphescape{Z}[2]{!{0;<#1,0pc>:<0pc,#2>::0}} %set scale to #1 by #2
\xygraph{!Z{5em}{3em}
A="top" [r] B [r] C [r] D
"top"[d(1)r(.5)]{FGH} [r(2)] {IJK}
"top"[d(2)] L [r(1.5)] {MNO} [r(1.5)] P}
\]
(this time it's the arguments to !Z that control the spacing)
More information about the xy-pic
mailing list