Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to put this figure (Matrix) at the center but I can't, even though the title is centered:

How to do this please?

I have this code :

\begin{center}
\begin{figure}[H]
        \begin{center}
                    \[
                    \begin{blockarray}{cccccc}
                    123 & 12,3 & 13,2 & 1,23 & 1,2,3\\
                    \begin{block}{(ccccc)c}
                      0 & 1 & 1 & 1 & 0 & 123 \\
                      1 & 0 & 0 & 0 & 1 & 12,3 \\
                      1 & 0 & 0 & 0 & 1 & 13,2 \\
                      1 & 0 & 0 & 0 & 1 & 1,23 \\
                      0 & 1 & 1 & 1 & 0 & 1,2,3 \\
                    \end{block}
                    \end{blockarray}
                    \]
        \end{center}

 \caption{ Matrice d'adjacence de treillis de 5 partitions de $E = \{1,2,3\}$}
\end{figure}
\end{center}
share|improve this question

1 Answer 1

You have too many center environments:

\begin{figure}
\centering
$\begin{blockarray}{cccccc}
123 & 12,3 & 13,2 & 1,23 & 1,2,3\\
\begin{block}{(ccccc)c}
0 & 1 & 1 & 1 & 0 & 123 \\
1 & 0 & 0 & 0 & 1 & 12,3 \\
1 & 0 & 0 & 0 & 1 & 13,2 \\
1 & 0 & 0 & 0 & 1 & 1,23 \\
0 & 1 & 1 & 1 & 0 & 1,2,3 \\
\end{block}
\end{blockarray}$
\caption{Matrice d'adjacence de treillis de 5 partitions de $E = \{1,2,3\}$}
\end{figure}

I've removed the [H] specification that I usually recommend not to use, particularly with big objects such as this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.