Saturday, 17 August 2013

Table spacing, multi column

Table spacing, multi column

Good day, hi, I have a question to ask. If you have some spare time please
kindly spare me a few minutes to enlighten me on the following question.
Thanks in advance!
So I am trying to construct a table, but the spacing isn't balanced.
\documentclass{article}
\usepackage[english]{babel}
\usepackage{multirow}
\begin{document}
\begin{center}
\begin{tabular}{ |c|c|c|c|c|c|c|c|c|c| }
\hline
\multirow{2}{*}{Class} & \multicolumn{2}{c|}{Similarity Gibbs Sampling} &
\multicolumn{2}{c|}{Hand Computatation} & \multicolumn{4}{c|}{Combination}
& \multirow{2}{*}{Graph Cut(S)} \\ \cline{2-1} \cline{3-1} \cline{4-1}
\cline{5-1} \cline{6-1} \cline{7-1} \cline{8-1} \cline{9-1}
& 0 & 1 & 0 & 1 & 1 & 2 & 3 & 4 & \\ \hline
${V_1}$ & 0.388 & 0.612 & 0.393 & 0.607 & 0 & 0 & 1 & 0 & 2 \\ \hline
${V_2}$ & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 1 & 2 \\ \hline
${V_3}$ & 0 & 1 & 0 & 1 & 1 & 0 & 1 & 0 & 3 \\ \hline
${V_4}$ & 0.388 & 0.612 & 0.393 & 0.607 & 1 & 0 & 1 & 1 & 1 \\ \hline
%\cline{2-1}
\end{tabular}
\end{center}
\end{document}

As you can see, the 3rd column and 5th column do not share the same
spacing as 2nd and 4th respectively.

No comments:

Post a Comment