Graphics, Figures & TablesConditional Formatting of Table Cells

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Ligoe
Posts: 1
Joined: Mon Jan 09, 2012 7:59 pm

Conditional Formatting of Table Cells

Post by Ligoe »

I would like to be able to colour in cells in a table based on the value of their numerical content (i.e. conditional formatting).

This is possible in excel, e.g. see here:
http://images.pcworld.com/news/graphics ... xcel_b.jpg

Does LaTeX provided a function for this or has anyone come up with a clever solution (other than colouring in cells manually)?

I searched Google (which has so far never failed me in my LaTeX questions), but to no avail.

Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

eternal_fizzer
Posts: 1
Joined: Tue Apr 17, 2012 5:08 pm

Conditional Formatting of Table Cells

Post by eternal_fizzer »

In case you haven't found the solution yet, I was just looking for the same feature. Dave Whiting has written the how-to for us:
"Some examples of conditional typesetting using the latex() function"

Hope that helps!
Post Reply