TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.