In short, using multirow, I observe that an hline will overwrite the column color. A cline{a-b} however will not. If I use an hline it will intercept the multirow column. What I need is a row delimiter in the second column and none in the first.
It also appears that the column delimiter is weaker than in a normal table. I have also included the column header for comparison. If compiled into a single table, the column header would have the same issues as the row header. I would like to leave the top left 2 cell box empty with no horizontal or vertical lines.
Thanks
Code: Select all
\usepackage[table]{xcolor}
\definecolor{H}{gray}{0.70}
\usepackage{multirow}
\usepackage{rotating}
\begin{document}
\newcolumntype{H}{>{\columncolor{H}}c}
\begin{table}[h!]
\begin{center}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{*{4}{|H}|}
\hline
\multicolumn{4}{|H|}{Sub-Shell} \\
\hline
F &
D &
P &
S \\
\hline
\end{tabular}
\end{center}
\label{T1C}
\end{table}
\begin{table}[h!]
\begin{center}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{*{2}{|H}|}
\hline
&
1 \\
\cline{2-2}
&
2 \\
\cline{2-2}
&
3 \\
\cline{2-2}
&
4 \\
\cline{2-2}
&
5 \\
\cline{2-2}
&
6 \\
\cline{2-2}
&
7 \\
\cline{2-2}
\multirow{-8}{*}{\rotatebox{90}{Shell}} &
8 \\
\hline
\end{tabular}
\end{center}
\label{T1R}
\end{table}
\end{document}