,

Changing font color in table columns

In my ongoing search to further improve table layout for my beamer-presentations, I just came across a simple way to change the font color in tables. This comes in handy, for example, to highlight results regression results in specific tables. Instead of, for example, specifying a 2-column table with two centered colums as \begin{tabular}{cc} add…

In my ongoing search to further improve table layout for my beamer-presentations, I just came across a simple way to change the font color in tables. This comes in handy, for example, to highlight results regression results in specific tables.

Instead of, for example, specifying a 2-column table with two centered colums as

\begin{tabular}{cc}

add >{\color{red}} before the column definition that you would like to have printed in red (or whatever color you specified):

\begin{tabular}{c>{\color{red}}c}

If you would like to add this feature as an overlay, simply add the corresponding number, e.g. 4

\begin{tabular}{c>{\color<4>{red}}c}

So that it will only be shown on the fourth page of this slide

Necessary usepackages: \usepackage{xcolor}

Leave a Reply