I am having some trouble removing the "white lines" from a colored table (where it says 3 and 4).
\documentclass{report}
\usepackage{wrapfig}
\usepackage{colortbl}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{hhline}
\usepackage[table,xcdraw]{xcolor}
\usepackage{graphicx}
\definecolor{lightgray}{rgb}{0.75,0.75,0.75}
\definecolor{darkgray}{rgb} {0.50,0.50,0.50}
\begin{document}
\begin{wraptable}[12]{r}[0cm]{5cm}
\vspace{-1cm}
\resizebox{5cm}{!}{
\begin{tabular}{c|c|c}
\hline
\textbf{Binary} & \textbf{ICDR} & \textbf{ETDRS} \\ \hline
0 & 0 & No DR \\ \hline
&\cellcolor{lightgray}1 & \cellcolor{lightgray}Very mild NPDR \\ \hhline{~|--}
&\cellcolor{lightgray}2 & \cellcolor{lightgray}Mild NPDR \\ \hhline{~|--}
&\cellcolor{lightgray} & \cellcolor{lightgray}Moderate NPDR \\ \hhline{~~|-}
&\cellcolor{lightgray} & \cellcolor{lightgray}Severe NPDR \\ \hhline{~~|-}
&\cellcolor{lightgray}\multirow{-3}{*}{3} & \cellcolor{lightgray}Very Severe NPDR \\ \hhline{~|--}
&\cellcolor{darkgray} & \cellcolor{darkgray}\begin{tabular}[c]{@{}c@{}}Mild - Moderate\\ PDR\end{tabular} \\ \hhline{~~|-}
&\cellcolor{darkgray} & \cellcolor{darkgray}High-Risk PDR \\ \hhline{~~|-}
\multirow{-8}{*}{1}&\cellcolor{darkgray} \multirow{-3}{*}{4} & \cellcolor{darkgray}\begin{tabular}[c]{@{}c@{}}Advanced Diabetic\\ Eye Disease\end{tabular}\\ \hhline{---}
\end{tabular}}
\caption{\label{tab:dr_classes}Sample Caption.}
\end{wraptable}]
\end{document}
Any information is 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.\documentclass
command so the supplied code can't possibly compile.\cline{3-3}
instead of the\hhline
? With\cline
there are no white lines in the adjacent multirow cell.