{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.
4
votes
2answers
30 views
How can I avoid the gap between \cellcolor-colored cells created by \tabucline?
I'm trying to partially separate rows from one another using \tabucline. The line encompasses column 3-6. Since the line's width is neither part of the upper, nor the lower row, there is going to be ...
2
votes
1answer
46 views
Define and use new colors for \rowcolor (Colortbl)
How can I use the maroon that I have defined, instead of the gray? Or (better) how can I use directly the maroon from:
\usepackage[dvipsnames]{xcolor}
\documentclass{scrbook}
...
1
vote
0answers
19 views
Use \DTLifoddrow in preamble
I'm putting many tables in many files generated by csv files.
I'm using datatools (opposed to say pgfplotstable) because it is much more forgiving in terms of the csv input format (e.g. it ignores ...
3
votes
1answer
66 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 ...
5
votes
1answer
61 views
Space between \hline\hline in longtable using package colortbl
When I use a \usepackage{colortbl} a space between \hline\hline in \longtable dissapears. I haven't find any solution how to put the space back, so I hope you'll help me to find it.
...
1
vote
1answer
66 views
revtex4-1 and colortbl doesn't fill cells
The MWE below shows that the \cellcolor command doesn't properly fill a table cell in revtex4-1 where it would do so in a simple article. Can anyone help me get fills that extend to the boundaries of ...
3
votes
1answer
169 views
Colored tables and cline/hhline
How to write \clines (or \hhline) in colored tables so that the color of the cell does not hide the line?
Here are two solutions but neither of them works fine.
\documentclass[a4paper,11pt]{article} ...
5
votes
1answer
63 views
Problem with \rowcolor and monochrome option
I have a document that I wish to distribute both in color and monochrome. It contains tables and makes use of colored rows. Problem is, when I use the monochrome option for the xcolor package the ...
18
votes
1answer
201 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 ...
2
votes
1answer
149 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:
...
12
votes
2answers
210 views
coloring entire row of tabular*
I would like to have the first row of all my tables colored with a certain color (below yellow) but somehow below thing is not working as expected
This:
\documentclass[a4paper, 12pt]{report}
...
7
votes
1answer
114 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) ...
5
votes
2answers
136 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}
...
0
votes
0answers
32 views
Open source workflow to represent a number in a table cell by its background color [duplicate]
Possible Duplicate:
Parametrize shading in table through TikZ
Drawing heatmaps using TikZ
I know this isn't strictly speaking a LaTeX question, so please move this somewhere else if you ...
4
votes
2answers
231 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 ...
1
vote
1answer
389 views
how to prevent cell color to cover table's borders?
When I change the background color of a cell in a table, the color covers the borders, however I want the horizontal lines to remain.
I have a simple command \cellcolor[gray]{0.9} in my table. Can ...
3
votes
1answer
75 views
tex4ht and colortbl
The package colortbl steals my beloved horizontal rules in the longtable. When I run tex4ht.
% run: htlatex main.tex
\documentclass{article}
\usepackage{longtable}
%\usepackage{colortbl}
...
6
votes
2answers
718 views
Matrix change row or column background
I have a matrix shown below. I would like to have the whole row green rather than only the cells ... how can I do that?
\begin{equation}\label{eq:appendrow}
\newcommand\x{\times}
...
11
votes
2answers
932 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
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 ...
7
votes
2answers
253 views
colortbl rowcolor overtop of @{decl}
I have tables with many $\pm$ values that I was using the @{decl} command to have nice alignment. However, I wanted to add some row colors. Trying to use colortbl I found that the cell/row color was ...
3
votes
1answer
267 views
colortbl stepping on midrules in booktabs
I'm using booktabs and colortbl. I'm get a very annoying problem of the color table overlapping a horizontal rule. Maybe pixel snapping problem or something, but I can't make it go away. And I ...
4
votes
2answers
226 views
Need help with cosmetic changes to longtable
I need some assistance with a longtable (code below). I have a few things that I've been trying to accomplish but have not been able to.
1) I want the grey background to cover the table in a similar ...
3
votes
1answer
140 views
Problem coloring an entire table due to \raisebox
I'm trying to make an ENTIRE table gray (see picture
but I can't get it to work with \raisebox.
Here's my code:
\documentclass[a4paper,11pt]{article}
\usepackage{color,amsmath,amsfonts,amssymb}
...
2
votes
0answers
114 views
Configure tex4ht for colortbl and tabulary
I'm trying to use colortbl together with tex4ht:
\documentclass{article}
\usepackage{tabulary,colortbl}
\begin{document}
\begin{tabulary}{\textwidth}{C}
test\\
\end{tabulary}
\end{document}
When ...
2
votes
1answer
337 views
Altering cell colour hides cell border in LyX
I'm probably doing something simple wrong, but I'm having the following problem. I've got a table with two columns, on the left there are multirows with coloured cells, on the right there are normal ...
10
votes
1answer
474 views
Very thin white line in colortbl
Whenever I use the colortbl package to format tables, a thin white space between the cells sometimes shows up on screen (not in print for as far as I can tell). For example in this table:
Is there ...
7
votes
2answers
331 views
Making a table with special headings
What package can I use to make a table that looks like this one?
2
votes
1answer
300 views
Problem with colortbl and supertable, color width of the row with leading “@{}”
I have a problem with colortbl \rowcolor that insists on making the color width of the rows longer than the actual row width. Snippet of the code:
\documentclass[a5paper, 10pt, twoside]{article}
...
8
votes
1answer
203 views
Interaction between \hdotsfor and colortbl: Bug/Feature?
When using package colortbl, the command \hdotsfor fails (partially), leaving too much white space before and after the dotted part. The mwe
\documentclass{book}
\usepackage{colortbl}
...
1
vote
0answers
274 views
Removing spaces between colored rows [closed]
I have a small tex document below, and I have tried various methods to remove the white spaces between rows, but haven't had any luck yet. Thanks! Here's the document:
...
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 ...
1
vote
1answer
171 views
mdframed and colortbl Connection problem
I'm using mdframed for bordered tables. Additionally I'd like to change the bg-colour of some columns using the package colortbl. However when I try to load colortbl with \usepackage, the document ...
3
votes
2answers
258 views
Centering text in tables problems with colortabs
I am trying to produce a basic color table as shown below
\documentclass{article}
\usepackage{booktabs}
\usepackage[dvipsnames*,svgnames]{xcolor}
\usepackage{colortbl}
\usepackage{array}
...
7
votes
2answers
757 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 ...
0
votes
0answers
231 views
Table with different chrome colors [closed]
Can someone suggest some tex code to make tables with various header colors as shown in the examples below:
22
votes
3answers
3k 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: ...
0
votes
0answers
194 views
How to debug tex4ht output? [closed]
I am in the process of trying to generate an HTML version of a report that was previously only PDF. Unfortunately, thus far my efforts with tex4ht have been some what fruitless.
The target output I ...
3
votes
1answer
373 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 ...
5
votes
2answers
319 views
Strange behaviour of “underneath” accents and \rowcolor
The following example shows the problem using the \b command for the "bar-under" accent: it seems to interact in an unexpected way with \rowcolor. Uncommenting the appropriate \renewcommand line, the ...
1
vote
1answer
228 views
A black cell is showed where I try to create a colored cell.
I'm trying to create a colored table with something like this code:
\documentclass[a4paper,twoside]{book}
\usepackage{amsmath}
\usepackage{color}
\usepackage{tabularx}
\usepackage{colortbl}
...
1
vote
1answer
850 views
Specify starting row number for \rowcolors from colortbl package
In the following application of \rowcolors from the colortbl package, how can I specify the option to start the alternating color pattern from the 3rd row onwards? The first two rows in this case are ...
8
votes
1answer
407 views
Alpha channel in colortbl
I'm using the colortbl package to color table cells. I've combined this w/ the xcolor package to define my own colors. However, it appears that xcolor does not support transparency. I saw the ...


