I'd like to fill the cells of a table with a background color. How can this be done?


The xcolor provides support for coloring table rows in a variety of patterns. The colortbl can color rows, columns, cells and rules.

There is a nice article by Lapo Filippo Mori in the PracTeX Journal that describes the usage of both packages. Scroll down to section 4.

  • 2
  • 1
    @Sharpie Can the the xcolor package be used for completely coloring the table in one specific color in one go? I am trying to replicate the look of this table for my report. I read up on the colortbl package but it has a pretty limited palette. Do you have any pointers on how to write minimal code for that table using xcolor? Most tips involving xcolor are about alternating colored rows. – Ariel Dec 26 '11 at 16:16
  • 2
    This answer could be improved if instead of just linking, you could quote the relevant parts to make this a complete answer. Links tend to get stale over time. – arekolek Aug 17 '16 at 20:24

Your Answer

