Graphics, Figures & Tablescolortbl | Cell stays white with Command inside

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
tux008
Posts: 1
Joined: Sat Aug 20, 2011 1:52 pm

colortbl | Cell stays white with Command inside

Post by tux008 »

Hello, everybody!

I have a small issue with the following LaTeX code:

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{tabulary}
\usepackage{colortbl}
\usepackage{array}

\begin{document}
\begin{table}[H]
\centering
\caption{Table with red and cyan background colors}
\begin{tabular}{|c|c|}
\rowcolor{red}
\hline
a & \c t\\
\hline
\rowcolor{cyan}
a & \c s\\
\hline
\end{tabular}
\end{table}

\end{document}
The problem is that for the "\c t" character, the table cell remains colored in white instead of being red.

Am I missing something here?

Thank you!

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

Post Reply