This is a bit of a long post, so apologies in advance. I would like to nest xymatrices in Xy-pic so that entire xymatrices would be treated as single entries in another xymatrix.
I tried the obvious method of putting an xymatrix as an entry in another, which didn't work.
I then did some search and read a few manuals, and found one method which only deals with two matrices side by side, with the starting point of the arrows not at the centers of the two matrices, as in the code below:
\[ \xymatrix{ & R_1 \ar[r] \ar[d] & P \\ R_2 \ar[r] \ar[d] & B & \\ Q && } \qquad\rightarrow\qquad \xymatrix{a} \] I then found on a thread on the Xy official site someone asking the same question as me; and he was told to use xygraph, and that there is an xymovie about this type of construction.
I couldn't find the movie; and couldn't find much information on how to use xygraph either ( the section in Xy-pic RM didn't include many examples).
Eventually I tried this:
\xy \xygraph{!M \xymatrix{ & R_1 \ar[r] \ar[d] & P \\ R_2 \ar[r] \ar[d] & B & \\ Q && } ([u]X : ?, [l]Y : ?) } \endxy which still didn't do what I wanted.
So is there a way to nest xymatrices? Or maybe I need to use some other graphics packages? Thank you very much for you help! (And your time for reading this.)
