I am making a table that needs every other row colored. I thought to use this.
\usepackage[table,svgnames]{xcolor}
\rowcolors{1}{white}{gray!15}
But my table has vertical bars
\begin{tabular}{r|*{3}{p{2in}|}}
as well as horizontal bars
\multicolumn{1}{c}{\ }
&\multicolumn{1}{c}{Monday}
&\multicolumn{1}{c}{Wednesday}
&\multicolumn{1}{c}{Friday} \\ \hline
and the color makes them disappear (the bar from the "r|
" stays as I have it above, but if I change the first multicolumn's "\
" to "week" then this bar also disappears). Am I missing something; is there a way to keep the bars and get the colors behind them? (I have a 2010 TeX Live.)
Best Answer
Before this stays completely unanswered, may I propose a solution that won't appeal to purists, but that might be a good approach for you.
There have been a couple of questions concerned with how TikZ matrices can be used as replacements for tables: TikZ matrix as a replacement for tabular, Horizontal row separation line in tikz matrix (like \hline in tabular). Since you're using beamer, you have TikZ loaded already, so this wouldn't require additional packages.
You can use matrix options like
every even row/.style
,every odd column/.style
,row 1/.style
and so on to adjust the appearance of your tables. Here's an example based on the snippets in your question: