I'm doing a table in LaTeX, but I'm having some serious problems in order to color the two last rows in the third column. I would like this cell to be gray, even though it isn't possible when I compile the file to PDFLaTeX. I have loaded the color, colorbl and multirow packages in the preamble, but it doesn't work.
Besides, once it's compiled, the program I'm using (Texmaker) shows the following error message.
Code: Select all
! Misplaced \omit.\multispan->\omit@\multispan...\multicolumn{1}{|<{\columncolor{Gray}}|}}
Code: Select all
\begin{table}
\begin{tabular}{|c|c|c|c|}
\hline
Professors & Despatx & Hores de classe & Tutories \\
\hline
Mary & C1/352 & dl. i dc. de 9 a 10 & dt. de 15 a 17 \\
\hline
John & C1/120 & dv. de 11 a 13 & dj. de 10 a 11 \\
\hline
Louie & C1/214 & \multirow{2}{*}{\multicolumn{1}{|>{\columncolor{Gray}}c|}} & \multirow{2}{*}{dl. de 16 a 18} \\
\cline{1-2}
Peter & C1/364 & & \\
\hline
\end{tabular}
\caption{Despatxos, correus i horaris dels professors}
\label{profes}
\end{table}
Sky
