# [Xy-pic] Re: xymatrix frames

Ross Moore ross at ics.mq.edu.au
Tue Aug 5 09:41:33 CEST 2003

```Hello Steve,

On Mon, 4 Aug 2003, Steve Flammia wrote:

> Hello,
>
> My name is Steve Flammia and I'm a graduate student in physics.  I have
> recently begun trying to define \xymatrix entries where the frame extends
> around multiple entries.  (This is extremely useful for making Quantum
> Circuit Diagrams for Quantum Computing.)  I've searched much of the
> literature, and asked some experienced Tex-nicians, but we can't solve the
> problem.  Is such a multi-entry frame possible in xy-pic?  Do you know if
> it is possible in the array environment?  Any help you can offer would be
> greatly appreciated.

Study the following message, posted recently on the Xy-pic mailing list.
The techniques used there should show you how to 'merge' multiple
entries in an \xymatrix, for the purposes of framing and placing
labels based upon extended sizes.

Hope this helps,

Ross Moore

ps.  consider joining the Xy-pic list.
Visit www.tug.org and look for the pages about mailing lists.

Date: Mon, 4 Aug 2003 15:09:48 +1000 (EST)
From: Ross Moore <ross at ics.mq.edu.au>
To: Ken Goodearl <goodearl at math.washington.edu>
Cc: xy-pic at tug.org
Subject: [Xy-pic] Re: xypic question (braces)

On Sun, 3 Aug 2003, Ken Goodearl wrote:

> Hi Ross,
>
> (Perhaps my question should have been sent to Kris Rose, but his email
as
>
> I have been trying to use xypic's frame extension to put braces, with a
> label indicating the number of terms, under a sequence of objects, as
> in the following rough sketch:
>
>      X   X   ...   X   X
>     \_________ _________/
>               V
>
>               n
>
> I expected the nib of the braces to be centered, but instead it occurs
> under one of the end objects; e.g.:
>
> \$\$\xymatrix{
> X \save[0,0];[0,4] **\frm{_\}} \restore &X &{\displaystyle\cdots}
> \save+<0ex,-4ex>\drop{n}\restore &X &X
> }\$\$

Try *merging* the matrix entries into a single object,
then center its reference-point:

\$\$\xymatrix{
X \save[0,0].[0,4]!C *\frm{_\}} \restore &X &{\displaystyle\cdots}
\save+<0ex,-4ex>\drop{n}\restore &X &X
}\$\$

>
> Thank you,
>
> Steve Flammia
>
>
>
```