7

Is there a way to color text in an entire table without using environment tabu? For example, change the color of text in every cell to red.

  • Which tabular-like environmet(s) do you use? – Mico May 24 '15 at 6:44
  • I use tabular environment. – cerebrou May 24 '15 at 6:45
6

Do you thing on something like this:

enter image description here

\documentclass{standalone}
    \usepackage[table]{xcolor}

    \begin{document}
\begin{tabular}{>{\color{red}}c >{\color{red}}c}
    \hline
A   &   B   \\
C   &   D   \\
    \hline
\end{tabular}
    \end{document}

If you wish in red (or other selected color) entire table (with lines), than before table just put command \color{red}

10

Just use

{\color{red}\begin{tabular}{cc}
a&b\\
1&2
\end{tabular}}

and the table will be red.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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