[texhax] custom style sheet

Arnaud Schmittbuhl aschmittbuhl at libertysurf.fr
Fri Aug 19 09:46:23 CEST 2011


Le Thu, 18 Aug 2011 20:52:32 -0400,
"Michael P. Soulier" <msoulier at digitaltorque.ca> a écrit :

> The problem with that is that there's no way I can see to specify an
> initial table header colour, followed by alternating colours, which
> is what I require.

It has to be done inside the tabular environment

\documentclass{article}
\usepackage[table]{xcolor}
\begin{document}
\rowcolors{2}{gray!30}{gray!15}
\begin{tabular}{lll}
  \rowcolor{gray!55}
  head    & head  & head\\
  even    & even  & even\\
  odd     & odd   & odd \\
  even    & even  & even\\
\end{tabular}
\end{document}

-- 
Arnaud Schmittbuhl


More information about the texhax mailing list