I would like to highlight rows in tables, in rowwise, that is I would like to highlight row 1 in red, then make row 1 in black but row 2 in red, etc.

How can I manage to do so in Beamer?


2 Answers 2


For a simple customized static row colouring :

\usepackage{color, colortbl}
\rowcolor{LRed} a & b & c \\
                 a & b & c \\
\rowcolor{LRed} a & b & c \\
\rowcolor{MRed} a & b & c \\
\rowcolor{HRed} a & b & c \\
\rowcolor{MRed} a & b & c \\
\rowcolor{LRed} a & b & c \\
\rowcolor{MRed} a & b & c \\

For overlays of odd/even coloring of the link of cmhughes or some more complex, see this MWE:





    \begin{frame}{The MWE}%


        A & B \\
        A & B \\
        A & B \\
        \rowcolor<4>{green} A & B \\
        \rowcolor<4,5>{yellow}A & B \\
        \rowcolor<4-6>{green}A & B \\
        \rowcolor<6>{red} A & B \\
        A & B \\


    \visible<1>{Testing default row colouring ... \\}
    \visible<2,3>{Testing change of default colors ...\\}
    \visible<4-6>{Testing in-out of custom colors ...\\ (caution: The order of defaults colors can change)\\}

Based of answer of Martin Scharrer


  • Thank you! I want to do the same thing for the cell color. \cellcolor<1>{red}, but it doesn't work. It seems I am not able to have the in-out effect of colors for cells. Please help!
    – user16739
    Aug 23, 2012 at 14:32
  • I think I have solved the above issue by using \only command. Thanks again!
    – user16739
    Aug 23, 2012 at 14:38

This is a simpler solution.

Just load the xcolor with the options table in the \documentclass. Because beamer loads by default xcolor package, therefore, it is necessary to pass the options in the \documentclass.

\documentclass[xcolor=table]{beamer} %-- pass the option table to xcolor package
\frametitle{Famous Composers}
    \rowcolors{1}{}{lightgray} %-- this indicates the change in odd and pair rows
    J.\ S.\ Bach
    & 1685--1750 \\
    W.\ A.\ Mozart & 1756--1791 \\
    L.\ Beethoven & 1770--1827 \\
    F.\ Chopin
    & 1810--1849 \\
    R.\ Schumann
    & 1810--1856 \\
    B.\ Bartok & 1881--1945 \\ \hline

Result: Result for the example


Use xcolor for colored tables in a beamer slide


  • 3
    +1: A fairly good answer for being new user! I approve, that you also list your sources. Protip: If you also post an image of the output people will more likely upvote it. Dec 15, 2013 at 0:33
  • Welcome to tex.se! I appreciate the effort you have put into your answer, however, I don't see yet how it addresses the OPs question. AFAIU, the question was about row-wise highlighting on subsequent slides using beamer overlays (e.g., slide 1: all rows are black, slide 2: row 1 is red, slide 3: row 2 is red, ...).
    – Daniel
    Dec 16, 2013 at 13:33
  • I understood he asked for changing color for row pairs and odds. In this case, that my answer is wrong, should I remove my answer? Dec 16, 2013 at 19:58

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.