Help on a bug of table

I have problem in marking a table. I want to get rid of this line out there.

\begin{table} [htp]
\begin{center}
\caption{AAA}
\begin{tabular}{|c|c|c|c|c|c|} \hline
\multicolumn2{|c|}{\multirow{2}{*}{BUG}} & \multirow{2}{*}{B} & \multicolumn3{|c|}{A} \\ \cline{4-6} \tspacer

& & & {$m = 1$} & {$m = 2$} & {$m = 3$}\\ \hline \tspacer
\multirow{2}{*}{$n_all$} & {STD} & {158} & {132} & {62} & {56} \\ \cline{3-6} \tspacer
& {HL} & {132} & {61} & {46} & {34} \\ \cline{3-6} \tspacer
& {STR} & {50} & {32} & {30} & {32} \\ \hline
\end{tabular}
\end{center}
\end{table}


-

1 Answer

You need to start the second row with

\multicolumn{1}{|c}{}


to remove the vertical line after the first entry

Like this, I also removed your undefined command and fixed the double vertical rule to the left of the A heading

\documentclass{article}
\usepackage{multirow,array}
\setlength{\extrarowheight}{2pt}

\begin{document}
\begin{table} [htp]
\begin{center}
\caption{AAA}
\begin{tabular}{|c|c|c|c|c|c|} \hline
\multicolumn2{|c|}{\multirow{2}{*}{BUG}} & \multirow{2}{*}{B} & \multicolumn3{c|}{A} \\
\cline{4-6}

\multicolumn1{|c}{}& & & {$m = 1$} & {$m = 2$} & {$m = 3$}\\
\hline
\multirow{2}{*}{$n_all$} & {STD} & {158} & {132} & {62} & {56} \\
\cline{3-6}
& {HL} & {132} & {61} & {46} & {34} \\
\cline{3-6}
& {STR} & {50} & {32} & {30} & {32} \\
\hline
\end{tabular}
\end{center}
\end{table}
\end{document}

-
Sorry, I still can not mark it. Could you post the entire code? –  Fan Zhang Apr 2 '12 at 13:42