[texhax] xymatrix question
Lars Madsen
daleif at imf.au.dk
Mon Jan 28 11:18:20 CET 2008
Justin C. Walker :
> Hi, all,
>
> The snippet below shows a problem I have with xymatrix: if I want to
> "bracket" a matrix as shown here, as I add more rows, the "box"
> around the diagram doubles in comparison to the size of the content.
> I did a quick check of the FAQ and the xy doc, but nothing leapt out
> as being directly relevant.
>
> Is this expected behavior? Explanations or fixes (so the diagram
> only takes up as much space as it would seem to need :-}) are
> appreciated; pointers to same would help as well.
>
> Thanks for the help.
>
> Justin
>
> \documentclass[11pt]{article}
> \usepackage[all]{xy}
>
> \begin{document}
>
> \[\left.
> \xymatrix{A\ar[r]&B}
> \right\}
> \]
> \[\left.
> \xymatrix{A\ar[r]&B\\C\ar[r]&D}
> \right\}
> \]
>
> \end{document}
>
the xymatrix is not (as you mentioned0 centered around the center axis
(no-one knows why)
This helps
\vcenter{\xymatrix{A\ar[r]&B\\C\ar[r]&D}}
/daleif
More information about the texhax
mailing list