I use MikTeX 2.1.
I tried to center my XY-Pic diagram:
\begin{center}
\xymatrix{...}
\end{center}
But this doesn't work!
Has anyone got an idea how I can solve this problem?
Veerle
Kind regards,
Wald
"Veerle" <veerl...@hotmail.com> wrote in message
news:16c55915.02010...@posting.google.com...
probably
\begin{center}
\leavevmode
\xymatrix{...}
\end{center}
(xy-pic isn't just a latex package, and it would appear it doesn't
create "latex-style" objects. another way around this would be to put
the matrix in an \mbox or something.)
--
Robin Fairbairns, Cambridge -- rf10 at cam dot ac dot uk
I've just picked one at random. Believe me, its centered!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[htbp]
\par\bigskip\footnotesize
\centering
\enskip
\UseTwocells
\xymatrixcolsep{5pc}
\diagram
\relax\skt{vyaayaama}\rtwocell<10>
_{\hbox{\tiny\skt{bodhisattvamaarga}}}
^{\hbox{\tiny\skt{bodhisattvamaarga}}}
{'{\skt{viirya}}}
&\relax\skt{pradhaana}\\
\enddiagram
\caption{\sl{Viirya}\index[skt]{viirya@\textsl{viirya\/}},
\skt{vyaayaama}, \& \skt{pradhaana}.}
\label{fig:viiryaandcomp}
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Many regards,
Richard Mahoney
--
r b m 4 9 @ i t . c a n t e r b u r y . n z
I recently ran into this problem myself. I ended up putting the XY-Pic
diagram in a one column tabular and centered this. Something like this
worked for me:
\begin{center}
\begin{tabular}{c}
\xymatrix{...}
\end{tabular}
\end{center}
\usepackage[all]{xy}
\CompileMatrices
.
.
.
\[
\xymatrix{....}
\]
works fine for me (on my system the diagram is now centered)
--
/daleif
F2.10 - Institut for Matematiske Fag, Matematisk Afdeling
Århus Universitet
The center environment and the \centering commands work on paragraphs.
Robin's suggestion to add \leavevmode causes a paragraph to start.
(In fact, the previous thread with this same title listed a number
of solutions, most of which worked because the object used started a
paragraph.)
Your example is centered because the (plain) TeX command \enskip starts
a paragraph. But your centering will be slightly off (by half the width
of \enskip).
Dan Luecking