I'm trying to merge some cells in a colored table. For now, the table looks like :
I am trying to merge the four cells marked yy
, and choose a custom color for them (the color thing is optional but would be nice).
I have tried doing so with the rows 2 to 5, but unfortunately, no merging, and the text destined to the cell doesn't appear.
My code for the table is :
\begin{table}[H]
\sffamily
\arrayrulecolor{white}
\arrayrulewidth=1pt
\renewcommand{\arraystretch}{1.5}
\rowcolors[\hline]{1}{.!50!White}{}
\centering
\begin{tabular}{@{} A|B|C @{}}
\cellcolor{ForestGreen}\arraycolor{White}\bfseries &
\cellcolor{ForestGreen}\arraycolor{White}\bfseries B &
\cellcolor{ForestGreen}\arraycolor{White}\bfseries C \\
\arraycolor{Black}
\multirow{4}{*}{xx} & \multicolumn{1}{l}{a2} & \multicolumn{1}{l}{b2} \\\cline{2-3}
& \multicolumn{1}{l}{a3} & \multicolumn{1}{l}{b3} \\\cline{2-3}
& \multicolumn{1}{l}{a4} & \multicolumn{1}{l}{b4} \\\cline{2-3}
& \multicolumn{1}{l}{a5} & \multicolumn{1}{l}{b5} \\\hline
\rotatebox{90}{yy} & a6& b6\\
\rotatebox{90}{yy} & a7& b7\\
\rotatebox{90}{yy} & a8& b8\\
\rotatebox{90}{yy} & a9& b9\\
\end{tabular}
\caption{caption}
\label{tab::buffer_order}
\end{table}
And my preamble contains the following :
\usepackage[
dvipsnames, % defines the use of the colors from the dvips / SVG set
table, % allows the use of colors in tables
]{xcolor}
\usepackage{floatrow}
\usepackage{multirow}
\usepackage{graphicx}
% defines column types for colored tables
\newcommand*{\arraycolor}[1]{\protect\leavevmode\color{#1}}
\newcolumntype{A}{>{\columncolor{LimeGreen!50!white}}m{1cm}}
\newcolumntype{B}{>{\columncolor{LimeGreen!50!white}}m{5cm}}
\newcolumntype{C}{>{\columncolor{LimeGreen!50!white}}m{6cm}}
Basically, I am trying to vertically merge cells in the first column, as to only have three cells in that column, in which the text is written vertically; while keeping the color scheme for the rest of the line, and possibly choosing the color of the merged cells.