I'm pulling my hair with the rendering of table cell borders when using multirow
and multicol
. In the below example, the double-lines in the table's "header" do not extend to the table top, and even more annoying, there is a gap in the top-right corner of the table. Any clues?
\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage{multirow}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\begin{tabular}{|l|c||c|c|c|c||c|c|c|c|} \hline \\
\multirow{2}{*}{} & \multirow{2}{*}{\rotatebox{90}{Target}} & \multicolumn{4}{|c||}{Banana} & \multicolumn{4}{|c|}{Pear} \\
& & \rotatebox{90}{Apple 1} & \rotatebox{90}{Apple 2} & \rotatebox{90}{Apple 3} & \rotatebox{90}{Apple 4} & \rotatebox{90}{Apple 1} & \rotatebox{90}{Apple 2} & \rotatebox{90}{Apple 3} & \rotatebox{90}{Apple 4} \\
\hline
Apple 1 & $+$ & & $*$ & $*$ & $*$ & $+$ & & & \\ \hline
Apple 2 & $+$ & $*$ & & $*$ & $*$ & & $+$ & & \\ \hline
Apple 3 & $+$ & $*$ & $*$ & & $*$ & & & $+$ & \\ \hline
Apple 4 & $+$ & $*$ & $*$ & $*$ & & & & & $+$ \\ \hline
\end{tabular}
\end{figure}
\end{document}