[Xy-pic] xymatrix and matrix

Ross Moore ross.moore at mq.edu.au
Sun Mar 20 20:53:35 CET 2011


Hi Aleks,


On 21/03/2011, at 12:07 AM, Aleks Kleyn wrote:


> However code
> \[
> \begin{matrix}
> \xymatrix
> {
> D\ar[r]|(.4){*}^{f_{1,2}}&
> A\ar[r]|{*}^{f_{2,3}}&
> A
> \\
> &&D\ar[u]|{*}_{f_{1,2}}
> }
> &
> \begin{array}{r@{\,}l}
> f_{1,2}(d):&v\rightarrow d\,v
> \\
> f_{2,3}(v):&w\rightarrow g(v, w)
> \\
> g&\in\mathcal L(A^2;A)
> \end{array}
> \end{matrix}
> \]
> 
> has extra line before diagram. The picture looks little shifted. I will
> appreciate any idea to improve image.

It isn't a line. It's simply how a multi-row diagram
is placed, with a particular proportion of height vs depth.

You can adjust this by wrapping it in an \xybox 
and aligning that, using <object> modifiers;
viz.

\fbox{% just to show the size of the diagram
  \xy*!C\xybox{\xymatrix
   ...
   ...
 }}\endxy}


See the attached image, to appreciate the difference that
this produces, in your example.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.jpeg
Type: image/jpeg
Size: 282075 bytes
Desc: not available
URL: <http://tug.org/pipermail/xy-pic/attachments/20110321/6f503ecd/attachment-0001.jpeg>
-------------- next part --------------

> 
> 
> Aleks Kleyn


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross.moore at mq.edu.au 
Mathematics Department                           office: E7A-419      
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------





More information about the xy-pic mailing list