Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created August 14, 2011 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/1144944 to your computer and use it in GitHub Desktop.
Save kunigami/1144944 to your computer and use it in GitHub Desktop.
Colored sample table
\begin{table}
\caption{Table caption}
\centering
\rowcolors{1}{loco3blue!17}{loco3blue!7}
\begin{tabular}{l | r r | r r}
& \multicolumn{2}{>{\columncolor{loco3blue!17}}c|}{A} & \multicolumn{2}{>{\columncolor{loco3blue!17}}c}{B} \\
Foo & 1 & 2 & 1 & 2\\
\hline
1 & a & b & c & d\\
\hline
\end{tabular}
\end{table}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment