I am trying to create a table listing advantages and disadvantages of diferent providers , but I can't make the \multirow
command readable. Where should I include it? I got this table code from someone who posted here. I am still new to latex so I am trying to understand why It is not reading and where I should post it. Here is te code I am using.
\usepackage[utf8]{inputenc}
\usepackage[toc]{glossaries}
\usepackage{enumitem}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{float}
\usepackage{multirow}
\usepackage{tabu}
\usepackage{array}
\newcommand*{\arraycolor}[1]{\protect\leavevmode\color{#1}}
\newcolumntype{A}{>{\columncolor{blue!50!white}}c}
\newcolumntype{B}{>{\columncolor{green!50!white}}c}
\newcolumntype{C}{>{\columncolor{FireBrick!50}}c}
\newcolumntype{D}{>{\columncolor{Gray!42}}c}
\begin{table} [H]
\begin{center}
\sffamily
\arrayrulecolor{white}
\arrayrulewidth=1pt
\renewcommand{\arraystretch}{1.5}
\rowcolors[\hline]{3}{.!50!White}{}
\begin{tabular}{D|B|C}
%\multicolumn{4}{D}{\bfseries Example table}\\
\rowcolor{.!50!Black}
\arraycolor{White}\bfseries Solution &
\arraycolor{White}\bfseries Advantages &
\arraycolor{White}\bfseries Disadvantages \\
\multirow{3}{*}{Provider A} & B & C \\
Provider B & B & F \\
Provider C & C & G \\
Provider D & D & H \\
Provider E & D & H \\
\end{tabular}
\end{center}
\end{table}
Best Answer
Here's a quick and dirty workaround. You need to define all rows you want it to span in advance (that's required in any case).