[Xy-pic] Re: More on basic spacing

Geoff Russell geoff at austrics.com.au
Thu Jun 30 01:32:08 CEST 2005


Yes, but the redundancy worries me less than the fact that
the analogous vbox example comes out with the boxes not right
and I don't know why!

Cheers,
Geoff.
------------------------- e.g.
\input xy
\xyoption{all}
\parskip5mm\parindent0mm

\def\sometext{This is some text and this is more text
This is some text and this is more text
This is some text and this is more text\par}

In this example, the frames are right, but the spacing seems wrong.

{
\entrymodifiers={[F]}%
\xymatrix@=10pt{
A &
B \\
\vbox{\hbox{C C}\hbox{D D}} &
\vbox{\hbox{C C}\hbox{D D}} \\
\vbox{\hbox{C C C}\hbox{D D D}\hbox{E E E}}&
\vbox{\hbox{C C C}\hbox{D D D}\hbox{E E E}}\\
\vbox{\hsize=40mm \sometext}&
\vbox{\hsize=40mm \sometext}\\
}}

In this example, the frames and spacing both seem wrong.

{
\def\f#1{\save []*[F]\frm{}\restore}%
\xymatrix@=0pt at R=5pt{
A\f1 &
B\f2 \\
\f3\vbox{\hbox{C C}\hbox{D D}} &
\vbox{\hbox{C C}\hbox{D D}}\f4 \\
\vbox{\hbox{C C C}\hbox{D D D}\hbox{E E E}}\f5&
\vbox{\hbox{C C C}\hbox{D D D}\hbox{E E E}}\f6\\
\vbox{\hsize=40mm \sometext}\f7&
\f8\vbox{\hsize=40mm \sometext}\\
}}

\bye


On Thu, 30 Jun 2005, Ross Moore wrote:

> Hi Geoff,
>
> On 29/06/2005, at 12:01 PM, Geoff Russell wrote:
>
> > Hi,
> >
> > The following works exactly as I'd expect - as opposed to the
> > example I posted using TeX \vbox es last night. The frames
> > contain the contents exactly and the spacing is 5pt as expected.
> >
> > Cheers,
> > Geoff Russell.
>
> OK, this works but it contains a fair bit of redundancy...
>
> >
> > ------------- spacing example (processed with pdftex)
> > \input xy
> > \xyoption{all}
> >
> > {\def\objectstyle{\hbox}
> > \def\f{\save []*[F]\frm{}\restore}%
> > \xymatrix@=5pt{
> > A\f &
> > B\f \\
> > \f\txt{AA\\BB} &
> > \txt{AA\\BB\\CC}\f \\
> > \txt{AAAA\\BBBB\\CCCC}\f &
> > \txt{AAAA\\BBBB\\CCCC}\f \\
> > }}
> >
> > \bye
>
> Since all the cells can be treated identically,
> it can be simplified down to this:
>
> {\def\objectstyle{\txt}
> \entrymodifiers={+[F]}%
> \xymatrix@=5pt{%
> A&
> B\\
> {AA\\BB}&
> {AA\\BB\\CC}\\
> {AAAA\\BBBB\\CCCC}&
> {AAAA\\BBBB\\CCCC}\\
> }}
>
>
>
> Cheers,
>
>      Ross
>
>
> >
> > _______________________________________________
> > xy-pic mailing list
> > http://tug.org/mailman/listinfo/xy-pic
> >
>
> ------------------------------------------------------------------------
> Ross Moore                                         ross at maths.mq.edu.au
> Mathematics Department                             office: E7A-419
> Macquarie University                               tel: +61 +2 9850 8955
> Sydney, Australia  2109                            fax: +61 +2 9850 8114
> ------------------------------------------------------------------------
>
>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6 Fifth Ave           +618-8332-5069 (Home)          |
St Morris SA 5068     +618-8207-2029 (Work)          | geoff at austrics.com.au
Adelaide, AUSTRALIA



More information about the xy-pic mailing list