I wrote a code like the one below:
\begin{table}
% table caption is above the table
\caption{Sample}
\label{tab:2} % Give a unique label
% For LaTeX tables use
\begin{tabular}{c|c|p{2cm}|p{2cm}|p{2cm}|p{2cm}}
\hline\noalign{\smallskip}
{Task size} & {Type} & \multicolumn{2}{c}{{Makespan}} &
\multicolumn{2}{c}{{Execution Cost }}
\\ \hline
{}&{}& X & Y & X & Y \\
\noalign{\smallskip}\hline\noalign{\smallskip}
\multirow{4}{*}{100} & A & 6 & 4 &10&11 \\
& B & 6 & 4 &10&11 \\
& C & 6 & 4 &10&11 \\
& D & 6 & 4 &10&11\\ \hline
\multirow{4}{*}{200} & A & 6 & 4 &10&11 \\
& B & 6 & 4 &10&11\\
& C & 6 & 4 &10&11\\
& D & 6 & 4 &10&11\\ \hline
\multirow{4}{*}{300} & A & 6 & 4 &10&11 \\
& B & 6 & 4 &10&11\\
& C & 6 & 4 &10&11 \\
& D & 6 & 4 &10&11\\ \hline
\multirow{4}{*}{400} & A & 6 & 4 &10&11 \\
& B & 6 & 4 &10&11\\
& C & 6 & 4 &10&11\\
& D & 6 & 4 &10&11 \\ \hline
\noalign{\smallskip}\hline
\end{tabular}
\end{table}
and I wish to take away the horizontal lines in the first and second columns that come under the names, and the 'p' used for column size is not giving the actual dimensions.
Any help is really appreciated.
\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.