Questions tagged [cellcolor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Tables - cellcolor does not work with tabu any more

I wrote a document with colored cells using \cellcolor with tabu. Unfortunately, it does not work any more. Here is an MWE: \documentclass{scrartcl} \usepackage{tabu} \usepackage[table]{xcolor} %\...
2
votes
2answers
48 views

Cellcolor covers alignment character in tabular

I'm aligning a range of numbers on an en-dash between two columns in a tabular. I'd like to add color to alternating groups of rows, but using \cellcolor covers up the en-dash. Note: this tabular is ...
0
votes
1answer
56 views

color row in a table using cellcolor

I'm trying to color the title line of the table by using the following code: \documentclass[a4paper, 10pt]{article} %% Packages %% \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \...
0
votes
2answers
41 views

How to use cellcolor and double backslash

This is my code which fails on the last row in the tabular. Why? \documentclass{article} \usepackage[ngerman]{babel} \usepackage{colortbl} \begin{document} \begin{tabular}{l} a \\ b \...
1
vote
1answer
46 views

Customizing Table CellColor Heat Map part 2

I am revisiting a previous question for which we have already a solution: Customizing Table CellColor Heat Map Is it possible to have two different color definitions for two different color themes ...
2
votes
2answers
42 views

How to combine cellcolor and rotated text in a table correctly?

I try to create a table that has a width corresponding to 1.2\linewidth, colored cells and rotated text in columns 4 to 9. I have problems with coloring the cells containing the rotated text and to ...
1
vote
1answer
69 views

Tables - cellcolor does not fill the cell

I need to create a summary table for a talk. The idea is to have cells with different colours. However, I do not manage to make the colours fill for one cell. Here is a small example of my problem. ...
3
votes
2answers
71 views

How to color a cell of table completely?

I want to color the top row of my table. However, when I used the \rowcolor command, there are white spaces appearing in the second and third columns (cell is not filling completely with the color). ...
-1
votes
2answers
302 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 ...
0
votes
0answers
85 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{...
3
votes
1answer
48 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} ...
1
vote
0answers
41 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. \...
2
votes
2answers
122 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 ...
3
votes
2answers
124 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. ...
1
vote
2answers
51 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
418 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
432 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
118 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
1answer
104 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
41 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
154 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
84 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
34 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
81 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
100 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
65 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
336 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
180 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
694 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
249 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 ...
1
vote
1answer
533 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
71 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 ...
5
votes
2answers
852 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
1k 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
210 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
51 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
1k 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
56 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
98 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, ...
5
votes
2answers
1k 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
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 ...
3
votes
1answer
470 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 ...