Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cellcolor]

The tag has no usage guidance.

0
votes
1answer
51 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 ...
0
votes
1answer
63 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]{...
5
votes
2answers
83 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 ...
0
votes
0answers
162 views

\cellcolor and tabu

I am trying to use \cellcolor in a tabu environment. It works in a tabular environment, but not with tabu. Here is a minimal example. What else do I need to use \cellcolor with tabu. Thanks. The ...
0
votes
1answer
48 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 ...
2
votes
1answer
26 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}...
3
votes
1answer
59 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 ...
2
votes
1answer
69 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 ...
0
votes
1answer
24 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} \...
1
vote
2answers
40 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
0answers
69 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
2answers
50 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{...
2
votes
1answer
129 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 ...
7
votes
1answer
104 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 ...
3
votes
3answers
372 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 ...
0
votes
1answer
136 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
1answer
374 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
0answers
68 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 ...
4
votes
2answers
629 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 ...
2
votes
1answer
721 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 ...
0
votes
0answers
166 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
vote
1answer
45 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]{...
4
votes
1answer
739 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 ...
1
vote
0answers
51 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
93 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, ...
4
votes
2answers
808 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 ...
6
votes
1answer
5k 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 ...
3
votes
1answer
452 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 ...