Questions tagged [cellcolor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9 votes
2 answers
381 views

Make cells from table be displayed with a different value than they are presented in the source code

The context While studying logic, I found myself creating truth tables with different numbers of propositional variables. Sometimes I need to create a truth table for propositions that contains 6 ...
gfe's user avatar
  • 415
8 votes
3 answers
4k 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 ...
Karalga's user avatar
  • 1,232
7 votes
1 answer
520 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 ...
tvk's user avatar
  • 1,637
7 votes
3 answers
2k 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 ...
BHamza's user avatar
  • 351
6 votes
2 answers
557 views

Issue combining makecell and cellcolor

I have seen similar question to this one already but none of the answers I have found seem to solve my problem. I'm trying to color the cells of the first column of my table, but I cannot find a ...
Netim's user avatar
  • 63
6 votes
3 answers
433 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 ...
Mark's user avatar
  • 255
6 votes
1 answer
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 ...
Yusuf's user avatar
  • 61
5 votes
2 answers
544 views

Is there a LaTeX package available for robust rendering of tables in pdf?

Four years ago, David Carlisle sketched in this answer a way to mitigate problems with the pdf rendering of lines in cloloured tables. My question: Is there now an available LaTeX package implementing ...
Sir Cornflakes's user avatar
5 votes
1 answer
5k 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 ...
Mathias's user avatar
  • 79
5 votes
2 answers
422 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 ...
stysia's user avatar
  • 53
4 votes
3 answers
639 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. ...
madibat's user avatar
  • 93
4 votes
1 answer
4k 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 ...
keynes's user avatar
  • 1,617
3 votes
4 answers
2k 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 ...
Firmin Martin's user avatar
3 votes
2 answers
2k views

cellcolor in array LaTeX

The gray shading in the cells leaves no white space on the left. Can somebody help me to solve that problem? \documentclass[border=5pt]{standalone} \usepackage{amsmath} \usepackage[table]{xcolor} \...
aroaneios's user avatar
3 votes
3 answers
671 views

How to clear cellcolor for a specific cell in NiceTabular?

Assume I have a table like this: \begin{NiceTabular}{p{3.8cm}p{3.8cm}} \CodeBefore \rowcolors{2}{white}{gray!30} \Body A & B \\ C & D \\ \end{NiceTabular} \rowcolors gives the row ...
flyx's user avatar
  • 2,061
3 votes
2 answers
2k 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{...
user149418's user avatar
3 votes
1 answer
64 views

How to get table with single corner cut in each cell?

What I am trying to achieve is a table in which each cell has bottom right of its corners cut away like this: The cut-away portion is supposed to be of static size. How to achieve such result?
MrVocabulary's user avatar
3 votes
3 answers
159 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). ...
Muhammad Usman's user avatar
3 votes
2 answers
121 views

Paint columns of multirows latex

I'm trying to coloring a table with multirows. I want to "Formação Candeias" cell to be gray, "Rifte" cell to be pink and "Pré-rifte" cell to be blue. Below I'll show my ...
Annie Gabrielle's user avatar
3 votes
2 answers
161 views

A small aesthetic problem in tables: conflict between \ cellcolor and \ cline commands

As you can see in the example below, the partial horizontal lines, for which I have used "\cline", are overwritten by the gray shading with "\cellcolor". I have seen several ...
Jesús Álvarez Lobo's user avatar
3 votes
1 answer
1k views

Persistent error ‘Undefined control sequence. \cellcolor’ with 'colortbl' LaTeX package

I've had a persistent error that appears with the following MWE (generated using TablesGenerator.comand tested with Texpad). The error ‘Undefined control sequence. \cellcolor’ does not appear to be ...
RosesBouquet's user avatar
3 votes
1 answer
94 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} ...
voices's user avatar
  • 2,039
3 votes
1 answer
520 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 ...
user avatar
2 votes
2 answers
175 views

\cellcolor color fill in \tabular has vertical gap for cells separated with cmidrule

Experimenting with the solution presented in https://tex.stackexchange.com/a/613957/144487 I find that the cells of the table are not completely filled with color: \documentclass[12pt, a4paper, ...
Markus W.'s user avatar
  • 272
2 votes
2 answers
1k views

I can't change \hhline color with \arrayrulecolor{}

I have created a table with tabular and cellcolor, and you know what hapends: the cell color overlap the border. I have found that this is often solved with hhline. In order to change the color in ...
franarx's user avatar
  • 31
2 votes
3 answers
2k views

How to color multicolumn cells in tabularx-tables

I tried to use the answer to the question asked here: How To Color A Single Multicolumn Cell But if I use more rows with different multicolumn spacing, some of the colored multicolum-cells still have ...
NewBee's user avatar
  • 23
2 votes
1 answer
105 views

How to fill color in table cells with two lines

I am trying to make a table where cells have colored backgrounds. I am using \colorcell{}, and it works fine with one line of numbers. However, I would need two lines in each cell. To make two lines, ...
user1993416's user avatar
  • 1,046
2 votes
2 answers
253 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 ...
Guest0815's user avatar
2 votes
1 answer
2k 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 ...
Peter Miehle's user avatar
2 votes
3 answers
110 views

Can't format the table correctly (\hline and colored cells)

I've created this table using a table converter website online and then tweaking it until I got what I wanted. I am using overleaf to compile everything. \begin{table}[h!] \caption{Composition of the ...
Flor's user avatar
  • 31
2 votes
1 answer
152 views

Latex to html : keep white space between colored cells in booktabs tables

I use a colored Table to illustrate a concept called 5-fold cross-validation. (Code is below). In latex, it looks as follows: When I convert this to html using tex4ebook cv_table.tex I get this: ...
Matthias's user avatar
2 votes
1 answer
46 views

Adjusting a reproduced table

I am trying to reproduce the following table in latex: For this, I am using the following code: \documentclass[12pt,oneside, brazil]{article} \usepackage[utf8]{inputenc} \...
Math's user avatar
  • 459
2 votes
3 answers
259 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 ...
Sue Dunham's user avatar
2 votes
2 answers
1k 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 ...
Yalifre's user avatar
  • 23
2 votes
2 answers
100 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 ...
Moura's user avatar
  • 1,575
2 votes
2 answers
1k 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 ...
Wilhelm's user avatar
  • 75
2 votes
2 answers
173 views

Coloring cells in a table redux: Vertical and horizontal bars hidden in most views/zooms

When using \cellcolor or \rowcolor to shade a cell (or row of cells) in a table, the vertical and horizontal separators become randomly obscured or hidden when viewing the PDF. This is true for ...
Matt Stein's user avatar
2 votes
3 answers
3k 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 ...
Reinhold Kainhofer's user avatar
2 votes
1 answer
186 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}...
sandu's user avatar
  • 7,950
2 votes
1 answer
280 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 ...
mac's user avatar
  • 1,479
2 votes
3 answers
210 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}...
Hansel's user avatar
  • 417
2 votes
1 answer
341 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 ...
Yves's user avatar
  • 2,825
2 votes
1 answer
105 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 ...
sskieller's user avatar
2 votes
2 answers
195 views

How do I sum CSV-values in to cells?

I am both new here on stackexchange and fairly new to TeX. I have tried searching for similar questions but found none. I am working on a document where I need to pppulate a table from a csv file. The ...
Softest's user avatar
  • 77
1 vote
3 answers
148 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{...
Colas's user avatar
  • 6,782
1 vote
2 answers
3k 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 ...
Wendell Fialho's user avatar
1 vote
2 answers
8k 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]{...
Lukáš Altman's user avatar
1 vote
4 answers
696 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 \...
topskip's user avatar
  • 37k
1 vote
1 answer
244 views

Balancing two column table

I am trying to recreate the following table using LaTeX Here is what I have so far My biggest problem is with balancing the two columns height wise (same height) as is done in the picture I am ...
N3buchadnezzar's user avatar
1 vote
2 answers
2k 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 ...
Camilo Ramirez's user avatar