# [texhax] \ref for diagrams

Lars Madsen daleif at imf.au.dk
Sun Mar 5 10:58:34 CET 2006

Justin C. Walker :

> Hi, all,
>
> I want to be able to number and refer to diagrams (as produced, e.g., by the
> XYPic package) in the same way as equations.  I think I once knew how, but I
> can't track down a way to do it.
>
> I've checked the FAQ, as well as the guide and ref for XYPic.  I'm not sure
> how to phrase the question, but all my attempts either gave me way too much
> to check, or came up dry.
>

$$\label{key} \xymatrix{...}$$

\vcenter{\xymatrix{...}}

might look better

/daleif

You cannot help men permanently by doing for them
what they could and should do for themselves. ''
-- Abraham Lincoln