I have the following table:
\documentclass{article}
\begin{document}
\begin{tabular}{ll}
this row should be blue & \\
this row should be red & \\
%% these rows alternate between green and yellow
a & b \\
c & d \\
e & f \\
f & g
\end{tabular}
\end{document}
and I would like to have different background colors for the cells, as mentioned in the table. Any ideas?
\cellcolorfor the single cell's background. – TeXnician May 26 '17 at 12:37