[texhax] \ref for diagrams

Justin C. Walker justin at mac.com
Sun Mar 5 21:08:27 CET 2006


On Mar 5, 2006, at 01:58 , Lars Madsen wrote:

>> 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.
> \begin{equation}
> \label{key}
> \xymatrix{...}
> \end{equation}

Well, that was simple.  Thanks!  Just what I needed.

> \vcenter{\xymatrix{...}}
> might look better

This does look better; the alternatives I tried all gave me way too  
much empty space above and below the diagram.

I notice the equation number shows up on the first line of the  
diagram.  Is there a way of getting it vertically centered?

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income
--------
The path of least resistance:
it's not just for electricity any more.
--------





More information about the texhax mailing list