1
vote
1answer
48 views

Creating a Color Key?

How can I create a colour key in LaTeX to show what the colours of this table mean?
2
votes
1answer
32 views

How to add font commands to a pgfplotstable header cell?

I'm trying to change the cell color and text color of the header of a pgfplotstable. Changing the cell color is not that much of a problem because I can just prefix the row with \rowcolor: ...
2
votes
1answer
52 views

Displaying the horizontal and vertical lines of a table after coloring rows

How can I re-show each line in the following table after coloring the row? \documentclass[english,a4paper,12pt]{report} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage[latin9]{inputenc} ...
1
vote
0answers
47 views

Missing lines when shading cells [duplicate]

I cannot figure out why lines are not being showed on the shaded columns. Can I get a little help finding what is wrong? EDIT: The MWE follows: \documentclass[12pt, a4paper]{article} ...
5
votes
1answer
116 views

How to uncover alternating row colors in beamer class?

In the howtos section of the beamer documentation (v3.30) I saw the code how to do alternating row colors when displaying tables as a remedy to errors caused by horizontal and vertical lines in ...
2
votes
1answer
82 views

Combining \rowcolor and \cmidrule [duplicate]

I want to shade the heading of my table. It all worked fine until I started using \cmidrule. This is my output: Is there a way to shade the white space between the first and second row? The code ...
5
votes
1answer
218 views

Colored diagonal divided table cell

How can I fill a table cell with different colors? I have tried the diagbox package but it doesn't work as you can see. I am not so much interested in the diagonal line. I only want to separate the ...
1
vote
1answer
227 views

\cellcolor command from colortbl package not working

I've been trying to colour single cells but it's not working. Here's a MWE: \documentclass{memoir} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \begin{document} \begin{tabular}{|l|c|} ...
0
votes
0answers
14 views

Text in tabular dissappears if I set gray tabular background [duplicate]

Here is the MWE of a problem. Text dissapears in the cells which are in any way connected to \multirow command. Some cells must stay orange while table background must stay grey. Is there any way to ...
10
votes
2answers
348 views

Table using booktabs and cellcolor looks ugly

When using \cellcolor in a booktabs table, I find that the output is not really appealing: I don't really care that the colored cell does not touch the lines above and below (cf. Coloring columns ...
7
votes
2answers
109 views

Hiding a column with colored cells

I want to use the column type described in this answer to hide certain columns in a table. The table occurs multiple times throughout the document, always with different columns hidden. Some of the ...
6
votes
2answers
170 views

color a column red in a table

When I try to color a column red, it seems that white lines begin to emerge. Additionally the \hline changes width depending on how you zoom into the document in pdf format. It look as if the color ...
0
votes
0answers
179 views

Very thin white line in colortbl with multirow

I would like to get rid of this thin white line in table using colortbl. \documentclass{report} \usepackage{colortbl} \usepackage{hhline} \usepackage{multirow} \begin{document} \begin{center} ...
2
votes
1answer
88 views

How to add background color to a single row which contains multicolumns?

I want to add background color in the header part of my table which contains grouped columns: \multicolumn{8}{ p{6.0in} }{ \textbf{ PARTNER } } & \hfill\textbf{ TOTAL PAYABLES } \\ A simple ...
3
votes
1answer
194 views

How to get horizontal black line when coloring cells?

I have the following table with an arrow showing the missing black horizontal black line: Here is the relevant code, I am wondering how do I get a black horizontal line where there is one missing? ...
3
votes
2answers
194 views

One verbatim column in pgfplotstable and a non-verbatim header

I wanted to create a pgfplotstable in which one column would be treated as verbatim. I first tried to straightforwardly use \verb but I almost expected this to fail spectacularly and it did. I found ...
8
votes
1answer
203 views

LaTeX's datatool package together with siunitx

I want to use the datatool package to read csv files and parse them to LaTeX tables. Furthermore I want to use siunitx to format the numbers from the csv file. Have a look at the following example: ...
6
votes
1answer
430 views

Disappearance of the table title/caption, when using colortbl

I'm formatting a manuscript according to the PNAS style, as prescribed in http://www.pnas.org/site/authors/LaTex.xhtml When I color my table using the package colortbl, the title/caption disappears ...
1
vote
1answer
373 views

Alternating column AND row colors with tabu? [closed]

There is a very convenient way to have alternating row colors in tabu using \taburowcolors{ .. }. But is there a way to do the same thing with columns plus alternating row colors ? What I want ...
3
votes
1answer
289 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 ...
1
vote
1answer
186 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 ...
4
votes
2answers
1k 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
117 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 ...
3
votes
1answer
399 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: ...
13
votes
2answers
803 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
177 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) ...
0
votes
0answers
34 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 ...
3
votes
1answer
1k 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 ...
11
votes
2answers
2k 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 ...
13
votes
1answer
3k 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
371 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 ...
4
votes
2answers
280 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
229 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
1answer
486 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 ...
7
votes
2answers
387 views

Making a table with special headings

What package can I use to make a table that looks like this one?
1
vote
0answers
401 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: ...
15
votes
2answers
10k 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
2answers
308 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
2k 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 ...
27
votes
3answers
6k 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: ...
4
votes
1answer
593 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 ...
1
vote
1answer
2k 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
656 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 ...