Deyan Ginev edited subsection_Advanced_Table_Colors_subsubsection__.tex  almost 9 years ago

Commit id: ea9e7df3555e84134a985a47d704319d6d6a4706

deletions | additions      

       

In Section \ref{sec:textcolor} we showed the extended set of colors available through the \verb|xcolor.sty| package. For tables, however, it is also useful to have control over the background color of individual rows. For instance:  \begin{lstlisting}   {\rowcolors{2}{green!80!yellow!50}{green!70!yellow!40} {\rowcolors{3}{green!80!yellow!50}{green!70!yellow!40}  \begin{tabular}{ |c| }  \hline  An Example of Row Colors \\ 

\end{tabular} }  \end{lstlisting}  %%%  {\rowcolors{2}{green!80!yellow!50}{green!70!yellow!40} {\rowcolors{3}{green!80!yellow!50}{green!70!yellow!40}  \begin{tabular}{ |c| }  \hline  An Example of Row Colors \\