Take the 2-minute tour ×

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

1 Answer 1

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:

    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


