Deyan Ginev edited subsubsection_Backgrounds_for_Individual_Cells__.tex  almost 9 years ago

Commit id: 2582eb113d16912565235799b576aadd6c4b5022

deletions | additions      

       

\subsubsection{Backgrounds for Individual Cells}  Setting the background color of a column can be achieved indirectly via the \verb|\newcolumntype| macro, which defines a new column type. That new type could be based on an existing column specification (e.g. the "centered" \verb|c|), with a modified background color via the \verb|\columncolor| macro. In case a row or column background color needs to be overridden, the cell-specific \verb|\cellcolor| macro comes to the rescue. Here is an illustrating example that puts all of these techniques together:  \begin{lstlisting}  \colorlet{FreshGray}{gray!20!white}  \colorlet{FreshGreen}{green!20!white}