Normally, papers has to be prepared in two column mode. The following code will allow you the table across two columns.
\begin{center}
\begin{table*}[ht]
{\small
\hfill{}
\begin{tabular}{|l|l|c|c|c|c|c|c|c|}
\hline
\textbf{Hello}&\textbf{Hello}& \multicolumn{7}{|c|}{\textbf{Hello}}\\
\cline{3-9}
\hline
AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA\\
BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB\\
AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA&AAAAA\\
BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB&BBBBB\\
\hline
\end{tabular}}
\hfill{}
\caption{Table Name}
\label{tb:tablename}
\end{table*}
\end{center}

I copy their comments for those who has the same problem. @Thanks you, Chus”.@
Liz said that “This code produces a line spacing of 3 lines in my document. Is it possible to avoid that?”
Chus solved this problem by introducing the center environment inside the table environment.
7 Comments so far
Leave a comment
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
you made my day!
Comment by Adrian Bachmann February 21, 2009 @ 10:54 amThank you! This code is very usefull!!!
TAG: table article twocolumn latex
Comment by Osvaldo Pulcinelli April 1, 2009 @ 3:45 pmthankz. bro
Comment by davyd April 11, 2009 @ 5:25 pmnice, it helped me out
Comment by Brasem April 30, 2009 @ 1:41 pmGreat! Thanks
Comment by Bashir July 10, 2009 @ 9:14 pmThis code produces a line spacing of 3 lines in my document. Is it possible to avoid that? Thanks in advance!
Comment by Liz August 13, 2009 @ 12:16 pmThank you!
Comment by Chus September 6, 2009 @ 10:57 amBTW, I was having also the same problem that Liz comments. You can avoid that by introducing the center environment inside the table environment, not outside as in the code above.