TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Color merged and regular cells in a table individually

I tried to color only a cell of my table but I don't know how do it. I found the method to color an entire row.How could I color only a cell of my table of a precise color?

share|improve this question

marked as duplicate by Alan Munn, Peter Grill, lockstep, Werner, Mico Apr 1 '12 at 19:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 76 down vote accepted

Here is a minimal working example (MWE) showing how it can be obtained using xcolor's table option - this loads colortbl:

enter image description here

\usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor
  Some & \cellcolor{blue!25}coloured & contents \\

The line choices in the above MWE emphasizes the tabular structure. However, for aesthetically pleasing table construction, consider using booktabs.

share|improve this answer
xcolor gave me an options clash. colortbl also provides the \cellcolor command, so I used that instead – craq Nov 7 '14 at 9:02

Use the colortbl package and its macro \cellcolor{<color>}.

%% Set some local commands and colors
\newcommand{\done}{\cellcolor{teal}done}  %{0.9}
\newcommand{\hcyan}[1]{{\color{teal} #1}}
\done & other\\
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.