{colortbl} is a package which implements a flexible mechanism for giving coloured ‘panels’ behind specified columns in a table. It requires the array and color packages.
22
votes
3answers
4k views
Professional-looking tables with alternating row colors?
Both the Booktabs documentation and the Small Guide to Making Nice Tables provide some nice rules-of-thumb for making professional-looking tables (e.g., no double rules, no vertical rules, etc.)
Q: ...
7
votes
2answers
857 views
colortbl: \rowcolor in tables with \begin{tabular}{@{}ccc@{}}
I'm trying to make a table with the following code:
\begin{tabular}{@{}ccc@{}}
\hline
\rowcolor[gray]{.9} a & b & c \\
\hline
\end{tabular}
Unfortunately the \rowcolor command seems ...
3
votes
1answer
393 views
How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule?
I'm using consecutive \cmidrule commands in conjunction with \arrayrulecolor to alternately hide and unhide horizontal rules in a table. However, when \arrayrulecolor is used with \cmidrule, some odd ...
4
votes
2answers
246 views
LaTeX question about white spaces between color tabs and two small questions
!Partially solved! How to remove small white spaces between color blocks? (when you compile this tex there are small white spaces between the & \cellcolor{EM}\\
& & \cellcolor{EM}\\) I ...
14
votes
2answers
6k views
Math inside tables and formatting
I'm trying to make a little summary of mathematic analysis, useful for my university, in LaTeX. I'm stuck in the problem of creating nice table, with alternate colouring containing equations with ...
3
votes
1answer
88 views
Combining diagonal table cell lines with minimum row clearance
So, yeah, it just never ends I guess. I'm fully aware that the following table is not exactly going to win an award for its stunning beauty no matter what. But the most important problem is that in ...
18
votes
1answer
218 views
Strange disappearing colored rules in beamer
I have received a booktabs bug report of \cmidrules that disappear when coloured rules are used inside beamer (together with colortbl). The problem can be illustrated with the following simple code ...
11
votes
2answers
1k views
Highlight table cells using thick, colored border
I'd like to highlight certain cells of my table. In particular, I'd like to set the border of these sells colored and thick. These cells should also have a background color.
Here's a minimal example ...
7
votes
1answer
122 views
xcolor and everycr-Problem
I'm trying to insert some \noalign-code in every row of a tabular by using colortbl and \everycr or \CT@everycr. In most cases it works fine, but not if there is a \rowcolors-command (from xcolor) ...
8
votes
1answer
1k views
Cellcolor overwrites partial horizontal lines (\cline)
So I need to make a colored table with multirows, together with the use of partial horizontal lines. I used \cline which does not work: the \cellcolor-command overwrites the line. This question told ...
5
votes
2answers
147 views
colortbl and amsmath conflict
I have a problem with colortbl and amsmath. Is someone here aware of a conflict between these two packages?
\documentclass[10pt]{article}
\usepackage{amsmath}
%\usepackage{colortbl}
\begin{document}
...
2
votes
1answer
165 views
White space between columns using \rowcolor{somecolor}
I have been using \rowcolor{color} command and I have noticed that there is always some white space between one cell and the next one in the row.
Here is my code:
...
