Questions tagged [cellcolor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
44 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 ...
0
votes
0answers
27 views

How to change cell colour in Latex [duplicate]

I have this matrix but I would like the second element in the second row to be highlighted, is that possible? I have tired everything!!! this is what I have so far... \begin{bmatrix} 1 & 2 & 3\...
1
vote
1answer
44 views

How to put tablet formats in correct way

I tried to make one table in LaTeX however my code doesn't work, do have any idea to solve this? \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{colortbl} \usepackage{arydshln} \begin{...
0
votes
1answer
24 views

How to prevent overflow of row/cell colors in booktabs? [duplicate]

Based on this answer you know how to easily create rows with background colors. This also works for booktabs. Edit: This is how it looks by default with \begin{tabular}{lccc}: But we want to change ...
6
votes
2answers
119 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 ...
0
votes
1answer
63 views

Procedure to produce a Latex source modifable Latex file from initially a MS Word table

Sorry to post again from the same subject I posted a few days ago. I have had an answer but impossible to reproduce the generation of a Latex source from a docx MS Word document. So, I attempt here on ...
2
votes
2answers
47 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 ...
1
vote
2answers
88 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 ...
0
votes
0answers
35 views

Colored vertical lines different on each row

I'd like to have a empty cell with a colored background line-dependant, meaning that on each line I can specify a different color for that space. Here is a screenshot of the best I can do. The idea ...
1
vote
0answers
116 views

How to paste a cell from one table into a merged cell in another table in latex?

I am creating a pdf document in R markdown (.Rmd file)- using latex and R. The R data frame consists of mainly two columns- string column 'Ind' and numeric value 'value'. I need to create 2 types of ...
1
vote
0answers
21 views

Change cellcolor automatically according to the number in cell – “dimension too large”

I would like to change cell color based on the values. I found code from another post Change cellcolor automaticly acording to the number in cell Here is the code that works: \documentclass{article} \...
1
vote
1answer
67 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 ...
9
votes
2answers
360 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 ...
1
vote
2answers
52 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 ...
0
votes
1answer
53 views

Table with multicolumn highlighted row

I'm trying to make the following table: I can create the structure easily. However I have a problem in the row colour: \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}...
2
votes
1answer
41 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} \...
1
vote
2answers
196 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 ...
1
vote
1answer
46 views

Color of table cells

I am having trouble coloring table cells. In the MWE below the color leaves white space at the right. Thinking that this may be due to internal length calculations I explicitly set the lenghts of ...
0
votes
0answers
39 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
3answers
64 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
100 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
65 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
58 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
77 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
280 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
80 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
vote
2answers
1k 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
429 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
68 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
57 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
343 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 ...
5
votes
3answers
297 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
57 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 ...
2
votes
3answers
922 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
2k 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
164 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 ...
1
vote
1answer
295 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
74 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
227 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
167 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
40 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
131 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
124 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
80 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
756 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
266 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
4answers
1k 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
315 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
781 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
72 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 ...