TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I defined the font and color of my text in the document preamble with the commands

\definecolor{darkblue}{cmyk}{1.00, 0.50, 0.00, 0.40}

All my text, tables, and equations have the custom font I want, but only the normal text and equations are dark blue. My table's font and lines still black. Even if I change the color for red, for example, the table remains black. How can I fix it?

share|improve this question

migrated from stackoverflow.com Nov 3 '11 at 14:55

This question came from our site for professional and enthusiast programmers.

You should as LaTeX questions on s.tk/tex. – Matt Ball Nov 3 '11 at 14:42
You should make a small complete example (with a standard font available on every system) that demonstrates your problem. Code snippets are in general useless. – Ulrike Fischer Nov 3 '11 at 15:41
I solved my problem. I put another \color{darkblue} after the \begin{table} Now I have caption, lines, and text, all in dark blue. – grandeabobora Nov 3 '11 at 15:52

This way you could set the desired color globally in your preamble, also valid for tables:


If you just mean tables in addition, you could redefine the table environment to get all lines and text such as captions in the desired color, such as:

\definecolor{darkblue}{cmyk}{1.00, 0.50, 0.00, 0.40}
    1 \\\hline
    2 \\\hline
  \caption{Test table}

So you need to do it just once in your preamble, and if you decide to change the color later you can adjust it at this single place. Also, you could include \centering in this redefinition if you center all tables.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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