[Xy-pic] centering problem

Ross Moore ross@ics.mq.edu.au
Fri, 27 Dec 2002 08:55:40 +1100 (EST)


> hello. i hope my problem is simple. i can't figure out how to center
> xymatrices. the center environment doesn't seem to help. for example the

Common problem; easily fixed!

> following does not come out centered. this is latex. thanks!
> 
> \begin{figure}[h]
 \begin{center}\leavevmode
               ^^^^^^^^^^^ -----  just add this !

> \begin{xy}
> \UseComputerModernTips
> \xymatrix @-1pc {
> & & *+++[o][F-]{u} \ar@(ul,ur)[]^{0} \ar[rd]^1 \\
> \ar[r] & *+++[o][F-]{s} \ar[ru]^1 \ar[rd]^0 & & *+++[o][F=]{f} \ar[ll]_{0,1} \\
> & & *+++[o][F-]{d} \ar@(dl,dr)[]_{1} \ar[ru]^0 }
> \end{xy}
> \end{center}
> \caption{Simple finite automaton}
> \label{fig:dfa}
> \end{figure}
> 

Hope this helps,

	Ross Moore

> 
> -- 
> cog
> _______________________________________________
> Xy-pic mailing list
> http://tug.org/mailman/listinfo/xy-pic