I am trying to insert my table to the left column of a two columns paper. I want my table looks like this format:
The following is my command, the table I create looks ugly! Can anyone give me a help? Thank you!
\begin{table}[h]
\begin{center}
\parbox{0.5\textwidth}{\caption{when the title is too long it will not in the center of the table}}\vspace{10pt}
\label{tab:table}
\begin{tabular}{r|ccccc|c}
& \multicolumn{5}{c}{Gene Selection Method} & \\
Cross-Validation & A & B & C & \\ \hline
fold 1 & 0 & 0 & 0 \\
fold 2 & 0 & 0 & 0 \\ \hline
fold 3 & 0 & 0 & 0 \\
fold 4 & 0 & 0 & 0 \\ \hline
fold 5 & 0 & 0 & 0 \\
fold 6 & 0 & 0 & 0 \\ \hline
fold 7 & 0 & 0 & 0 \\
fold 8 & 0 & 0 & 0 \\ \hline
fold 9 & 0 & 0 & 0 \\
fold 10 & 0 & 0 & 0 \\ \hline
Average & 0 & 0 & 0 \\
\end{tabular}
\end{center}
\end{table}
This is my ugly table:
\documentclass
are you using? (2) Insidetwocolumn
mode, float placements are difficult. Do you want to force it to be where you put it... in the left column? Or float around? (3) What is "ugly" about the table... that's a very subjective viewpoint. (4) Don't use thecenter
environment, rather use\centering
. See Should I use\center
or\centering
for figures and tables?hline
) and vertical lines (|
) in your table if you don't want them? Just remove them, and your table will have the same format as the table you give as the "perfect" table.\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.