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 want to remove the red marked line in the below picture, does anyone know how to do it?

The Latex script I use is:

\begin{tabular}{|c|c||c|c|c|}\hline
\multicolumn{2}{|c||}{\backslashbox{Challenges~}{Input~~}}
& 2D & 3D & 2.5D \\\hline \hline
\multirow{4}{*}{Changes}
&viewpoint & 1 & 2 & 3\\\hline
&illumination & 1 & 2 & 3\\\hline
&scale & 1 & 2 & 3\\\hline
&deformation & 1 & 2 & 3\\\hline

\multirow{2}{*}{\specialcell{Content \\ Changes}}
&occlusion & 1 & 2 & 3\\\hline
&\specialcell{background \\ cluster} & 1 & 2 & 3\\\hline
\end{tabular}

enter image description here

share|improve this question
    
How are the macros \specialcell and \backslashbox defined. Please consider augmenting your code snippet to form an MWE (minimum working example, i.e., a LaTeX file that starts with \documentclass and ends with \end{document}) that's compilable and produces the output shown in the screenshot. –  Mico Aug 4 at 8:42

2 Answers 2

Tha table could be improved using hhline: it helps double lines intersect nicely with other (single or double) lines. I also used the makecell package that is designed to allow linebreaks inside tabular cells (and also common formatting of cells contents):

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{colortbl}
\usepackage{diagbox} 
\usepackage{makecell} 
\setlength\doublerulesep{3pt}

\begin{document}

\begin{tabular}{|c|c||c|c|c|}
\hhline{--||---}
\multicolumn{2}{|c||}{\backslashbox{Challenges~}{Input~~}}
& 2D & 3D & 2.5D \\
\hhline{==::===}
\multirow{4}{*}{Changes}
&viewpoint & 1 & 2 & 3\\
\hhline{~-||---}
&illumination & 1 & 2 & 3\\
\hhline{~-||---}
&scale & 1 & 2 & 3\\
\hhline{~-||---}
&deformation & 1 & 2 & 3\\
\hhline{--||---}
\multirowcell{3}{Content \\ Changes}
&occlusion & 1 & 2 & 3\\
\hhline{~-||---}
&\makecell{background \\ cluster} & 1 & 2 & 3\\
\hhline{--||---}
\end{tabular}

\end{document} 

enter image description here

share|improve this answer

Use \cline{2-5} instead of \hline.

share|improve this answer

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.