TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having some difficulty with centering a text in a table. If you happen to have some spare time, please kindly enlighten me on the following problem.

Referring to the picture below, you could see that the word "Graph" is left aligned instead of center. How to make it centered? Could you please provide advice or guidance on the issue?


\node (n1) at (10.6,4.9) [draw, circle,fill=green!20] {1};
\node (n2) at (4,0.8) [draw, circle,fill=blue!20] {2};
\node (n3) at (3.8,11.4) [draw, circle,fill=green!20] {3};
\node (n4) at (0.1,6.4) [draw, circle,fill=green!20] {4};
\node (n5) at (3.6,3.4) [draw, circle,fill=blue!20] {5};
\node (n6) at (7.4,2.3) [draw, circle,fill=blue!20] {6};
\node (n7) at (9,10.4) [draw, circle,fill=green!20] {7};
\node (n8) at (18,10.8) [draw, circle,fill=green!20] {8};

\foreach \from/\to in {n6/n2,n2/n5,n5/n6}
\draw[blue] (\from) -- (\to);
\foreach \from/\to in {n1/n8,n8/n7,n7/n1,n3/n7,n4/n3}
\draw[green] (\from) -- (\to);
\foreach \from/\to in {n6/n1,n5/n4,n2/n4,n1/n5}
\draw[red] (\from) -- (\to);


\begin{longtable}{ l  l  l  l >{\centering\arraybackslash}m{7cm} }
\multicolumn{5}{ c }{Convergence} \\
Time & \multicolumn{2}{ c }{Information} & Graph & Description \\ 
& Vertice & 8 & & \\[1cm] 
1 & ${P(1)}$ & 0.5 & 
\tesplot} &  \raisebox{-0.1cm}[0pt][0pt]{%
Hello World akdjfasljdfkjasj dfjsadkflkjksad flkaskjdfsadlflkj safdalkjsfd sljdfkjasj         dfjsa sljdfkjasj dfjsadkflkjksad flkaskjd fsadlflkj safdalkjsfd sljdfkjasj dfjsadkflkjksad flkaskjdfsadl flkj safdalkjsfd dkflkjksad flkaskjdfsadlflkj safdalkjsfd
\end{minipage} } {%
} \\[1cm] 
& Chance & 0.5 & & \\[1cm]




share|improve this question
Just encase the header word in question, Graph, in its own \multicolumn directive: \multicolumn{1}{c}{Graph}. – Mico Aug 9 '13 at 10:57
or try \begin{longtable}{ l l l c >{\centering\arraybackslash}m{7cm} } – Francis Aug 9 '13 at 11:01
you might want to do the same with the header for the last column ("Description"). – barbara beeton Aug 9 '13 at 12:26
@Mico -- you should post your suggestion as an answer. – barbara beeton Aug 9 '13 at 12:28
up vote 1 down vote accepted

solved by Mico(http://tex.stackexchange.com/users/5001/mico), thanks all, thanks a lot!!!!!!

share|improve this answer

Your Answer


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.