Questions tagged [cellcolor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
1answer
136 views

Use siunitx to round numbers while using colortbl to color cells

I typically use the siunitx package to round numbers in tables and use the \cellcolor command of the colortbl package to change the background colors of certain cells. However, as the following ...
6
votes
1answer
6k views

Cell coloring (highlighting) with in-out effects in a table in beamer

I need cell coloring (or highlight effect) in a cell of a table in beamer after a click (I mean, I am planning to talk about something in that frame and I will emphasize just a number in a cell at the ...
5
votes
2answers
96 views

Specifying a starting column with colortbl package and xcolor

I have a table that I have attempted to set up as follows (contrived example): % Preview source code %% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless ...
5
votes
2answers
977 views

Multi-colored cell background

I have been successfully using xcolor and its \cellcolor command for a while, and produced beautiful results with it. However, I would like to create some more advanced background effects: color the ...
4
votes
2answers
712 views

\cellcolor overwrites table lines (\hhline)

After following the questions related to the same topic where the problem was using \cline, I used the suggestions based on another related question. However, I am still facing the same problem where ...
4
votes
1answer
892 views

How does \hhline work?

I'm new using LaTeX and I want to learn how should I use the \hhline when I have problems with \cellcolor command. How does the \hhline work? I saw differents ways to use but I don't understand For ...
3
votes
3answers
509 views

\hhline overlay \vline in coloured tabular

I'm creating a table containing HTML colour and merged cells. However, some \cline/\hline have not the default \arrayrulewidth. I tried to use \setlength{\arrayrulewidth}{1pt} before \cline/\hline but ...
3
votes
2answers
89 views

issue with hhline and cellcolor in table

I am trying to setup a table with \hhline and \cellcolor. After I got it so far, that I don't see \hhlines in the colored cells I am now missing the black \hhlines which should separate the cells. ...
3
votes
1answer
44 views

Programming table cell colour based on contents

I built this table based on an earlier Q&A: As you can see there's a problem with the header. How can I disable the highlighting for headers only? Here's the code: \documentclass{article} ...
3
votes
1answer
109 views

Tables with multirows, coloured cells and horizontal dashed lines.

I am making a table with some coloured rows, dashed lines and multi rows. There is a set of issues I am running into, and none of them seem to solve my entire problem (only partially). Below I would ...
3
votes
1answer
460 views

Color running over the doublerule separator in a table

I want to draw a simple colored table with 4 columns. First row is a multicolumn row which spans columns one and two. There is one doublespace between columns 2 and 3. When i apply color (blue in this ...
2
votes
1answer
220 views

in longtable a Bold \cline and colored column

I have a longtable with some thick horizontal lines (I know and agree, lines are ugly, but I have to do it). Works good with package boldline and \clineB. But it interferes with colored Columns. Am I ...
2
votes
2answers
84 views

Dissapearing of table/cell borders with coloured cells in the PDF viewer depending on the zoom

I have a problem with the coloured tables that I want to include in my master thesis, so it is a very important issue for me. I generate the tables with tablesgenerator.com, and in the LaTeX viewer ...
2
votes
1answer
929 views

How to avoid cline overwride when using cellcolor? [duplicate]

The cline between the colored cells 1 and 2 in the example below has been overridden by the cellcolor command. I was wondering whether there exists a way to make the line separating these two cells ...
2
votes
1answer
35 views

Error while using cellcolor

\begin{block}{|ccc|} is not working while using cellcolor \documentclass[10pt,dvipsnames,svgnames]{beamer} \setbeamertemplate{navigation symbols}{} \usepackage{amsmath,mathtools} \usepackage{colortbl}...
2
votes
1answer
77 views

Cell color covers math expression

In the following colored table there is a color issue at the 2nd row. As you can see the curly bracket is partly covered by the row color. I tried to enclose the cell in a minipage, hoping that it ...
1
vote
2answers
60 views

Issue with colored cell in tabular

In the following, there is an issue in the colouring of the first line. It should be a one simple grey block but there is some overlaying white rectangle. Why and how to fix it? \documentclass{...
1
vote
2answers
46 views

Again tabular. What is the best way to color a cell or a table? What is the problem?

Hi again (I´m sorry by English mistakes). I've learned a lot here. This week I learned several ways to create a table joining cells, and also how to put colors in it. However for some reason, two ...
1
vote
2answers
56 views

hhline fails to adhere to entries when using multirow statement

Here's the MWE (I'm using MikTeX 2.9 in combination with TeXworks): \documentclass[a4paper, 11pt]{article} \usepackage{geometry} \geometry{a4paper, portrait, left=2cm, right=2cm, top=3cm, bottom=3cm}...
1
vote
1answer
441 views

\hhline not working with \multirow and \cellcolor

I am trying to make a table with colored cells and white grid lines, in it there are some cells that cover several rows. The problem is that when I use \multirow and \cellcolor to achieve this, the ...
1
vote
2answers
186 views

Solution for disappearing table/cell borders with \rowcolor in the PDF viewer depending on zoom?

We are currently trying to convert some documents (with our corporate design) from InDesign to LaTeX. These documents are supposed to be available on the Homepage as PDF and also print out nicely. The ...
1
vote
1answer
47 views

coloring single cell in smallmatrix

I'm trying to color a single cell in smallmatrix, but it seems to me that the \cellcolor doesn't work in smallmatrix: \documentclass{article} \usepackage{amsmath} %smallmatrix \usepackage[table]{...
1
vote
0answers
39 views

How to hatch multicolumn cells instead of colour [duplicate]

In the following table I want the \multicolumn cells hatched in the same way, but I cannot get it to work. For all the cells I now have grey, I would want them hatched with diagonal lines. \...
1
vote
0answers
84 views

How to automatically color a tabular's cell using its values? [duplicate]

I have a table of values and I want the cells to range from green to red depending on their values. I tried the following function: \newcommand{\cellc}[1]{ \pgfmathparse{#1 <= 256 ? #1 / 256 : ...
1
vote
0answers
70 views

Is there a way to make macros for building this kind of table?

Is there a way to make macros that makes a table like this where the colors changes according to the different cells, even though the first couple of cells are a multirow cell. I need to make 16 of ...
1
vote
0answers
54 views

Problem with colored table [duplicate]

I'm new using latex and I want to do a colored table for my work. I have the following code: \documentclass[11pt, oneside]{book} \usepackage[table]{xcolor} \usepackage{hhline} \newcommand{\x}{\...
0
votes
1answer
209 views

Cellcolor - undefined control sequence

What is wrong with this please? I have error ! Undefined control sequence. Fit& 1& 2& 3& 4& 5& 6& 7& 8& 9& \cellcolor Thank you \documentclass[12pt,a4paper]{...
0
votes
1answer
97 views

Split cell into five equally sized “sub-cells” with fixed width

I am trying to color cells of a table with 3 rows of 2 cm width each using tabularx and cellcolor. I want to split an arbitrary number of cells of this table into "sub-cells" with different colors, ...
0
votes
1answer
68 views

Cellcolor creates too wide coloured field in table without internal cell margins

Summary: can I get a table with narrow columns (about 5 mm), a normally sized capital letter in some cells and some of the cells coloured (filled by a pattern would also work)? Full question: I'm ...
0
votes
1answer
27 views

Cellcolor misaligned in tabular in beamer

Consider the following code: \documentclass[8pt]{beamer} % Theme \usetheme{Frankfurt} \useinnertheme{rectangles} \setbeamertemplate{blocks}[default] % Packages \usepackage{xcolor} \usepackage{tikz} \...
0
votes
1answer
176 views

Bold line around one cell

I want a bold line around only one cell. The problem is that the cells below and on the sides are colored with \cellcolor so \cline didn't work. I then found this solution which produced bold lines on ...
0
votes
0answers
28 views

rowcolor removes the vertical lines of the table

After compiling (using pdflatex) the following \documentclass[12pt]{amsart} \usepackage{amsmath,amsthm,amssymb,amsxtra,amsopn} \usepackage{xcolor} \usepackage{colortbl} \usepackage{etoolbox} \begin{...
0
votes
0answers
189 views

How to deal with \cellcolor and \multicolumn in a complicated table?

I am preparing an application for a European innovation project call, using the H2020prposal.cls template. However some of the tables built by using the class have (stupidly) changed shape in the ...
-1
votes
2answers
119 views

Activity Schedule Table [closed]

I would like help getting ahead and being able to make this activity schedule table. I'm used to making tables simpler but so colorful I don't know. So please, I would appreciate your help. Thank you ...