Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}

enter image description here

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

enter image description here

\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}
share|improve this answer
    
Sorry, I still can not mark it. Could you post the entire code? –  Fan Zhang Apr 2 '12 at 13:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.