4
votes
1answer
43 views

Auto colour numbers in range

If I had some numbers in a tabular column, is there a way to automatically change the font colour of them if they are outside a range; eg red if under 10 and green if over 50? \documentclass{article} ...
2
votes
0answers
45 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
0
votes
0answers
36 views

Filling a cell of the table with color and preserving the border

I used \cellcolor{} to fill the cell of my table. However, the black borders of the cell disappears. The tex viewer shows borders, but I don't see the borders when I open as a pdf. Can you help me ...
3
votes
1answer
81 views

When I used color in a cell of a take, then this cell become wider

When I used color in a cell of a take, then this cell become wider. How to solve it? The code is here: \documentclass{beamer} \usepackage[utf8x]{inputenc} \usepackage{default} ...
3
votes
1answer
74 views

How to avoid rowcolour being applied to \caption in longtabu environment

I have used the following code to create table using tabu package, I have applied alternate row colours to the table using \rowcolors command. The issue is the colour fill is applied to the caption of ...
1
vote
1answer
66 views

Colouring cells of tables without xcolor

Are there any decent alternatives to xcolor if I want to colour cells in a table? I want to highlight certain cells depending on my data, but not entire rows or columns. I'm using Knitr and am having ...
10
votes
1answer
127 views

Use \cellcolor in \tabulary

The \cellcolor command from package colortbl doesn't seem to have any effect in a tabulary environment, though it works in tabular. Here is a minimal example: \documentclass[a4paper]{article} ...
2
votes
1answer
52 views

Removing the effect of color table, after the table ends

I am using color tables in my document, as it produces very nice results. Further to that I use some equations using cases environment. I see that the colors from the color table get mixed up with ...
0
votes
0answers
115 views

Cell borders in tables “disappear”

I'm using LyX to edit some tables and TexMaker, but when I set the background color in the cell, the border line "disappear". For example: http://postimg.org/image/xp2xocp7z/ (one of my tables in ...
4
votes
3answers
114 views

Adding background color to table cells in LyX

I'm doing some tables using LyX and I tried to set a color background in the cells , but I got this error: Undefined control sequence \rowcolor {cyan} & The control sequence at the end ...
2
votes
1answer
53 views

How to color a single cell in a longtable [duplicate]

We are using XeLaTeX and the longtable package to visualize information, one of those reports must have a colored cell. A single cell, not the entire row. An example output is here: Is there a way ...
0
votes
1answer
63 views

How to draw a simple table with colored cells in Beamer

I am trying to draw a simple "array" data structure in Beamer using tabular. I would like to color some of the cells blue. Here is my M(N)WE. \documentclass{beamer} \usepackage[table]{xcolor} ...
1
vote
0answers
76 views

Coloring rows in table [closed]

I have a problem with coloring table. I would like to color one row, but when I use \rowcolor, then vertical lines among colums disappear (or they become thinner). Is there any possibility of solving ...
6
votes
4answers
174 views

How to color a cell of a table using multirow and center the cell content?

I have checked for other similar questions. I followed the suggested solution in the question Color in multirows. After implementing this solution, I still have a problem. I want to develop the ...
5
votes
1answer
68 views

\rowcolor in \NewDocumentCommand

It seems to be impossible to wrap \rowcolor in a macro defined with \NewDocumentCommand, while everything is fine with \newcommand. Is ist possible to fixe this? \documentclass{article} ...
1
vote
0answers
55 views

prevent color from overlapsing cell border

All question I have looked to doesn't help me to solve my problem. Here's my code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{color} ...
3
votes
1answer
56 views

White Horizontal Line Longtables

I want to create a table like this. So I used xcolor to give alternating colors as this. This is what I got. Q1 ) Do you know how to generate white vertical rule get the effect shown red ? (I ...
2
votes
1answer
52 views

Changing border colors of all tables in a document

I have a document full of tables (think 8-10 tables) - already written. Some are tabulars, others are longtables. I do not want to substantially change the existing code. What is the fastest way (in ...
5
votes
2answers
139 views

Are there an easy way to coloring tables depending on the value in each cell?

I viewed in this post Conditional format for correlation table a solution to my question, but... Are there any easier way (or alternative) to do this using colors? Thank you. ------------------ ...
13
votes
5answers
347 views

LaTeX Tables: Cell value color based on its sign / conditional cell color

I've a long LaTeX document with many tables. Now I want to show negative values in cell in red color. I wonder how to do globally. My MWE is below: \documentclass{article} \begin{document} ...
1
vote
2answers
69 views

Equivalent color for \colorbox{gray} as for \cellcolor[gray]{0.8}

In my table I have used \cellcolor[gray]{0.8} and I would like to mark some words in my text with the same color. I have tried \colorbox{gray}, but the resulting box in the text is too dark. How can I ...
1
vote
1answer
66 views

Creating a Color Key?

How can I create a colour key in LaTeX to show what the colours of this table mean?
2
votes
1answer
72 views

color multirow in a table

I am trying to color a multirow in my table, but withou success until now: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{hhline} \usepackage{colortbl} ...
1
vote
0answers
80 views

Using `\hhline` coloring cells of a table

Sorry for this simple question. I am trying to color some cells of my table. Unfortunately, if I color two neighbouring cells, the lines of the table disappear. I have found some questions about this ...
2
votes
1answer
100 views

Displaying the horizontal and vertical lines of a table after coloring rows

How can I re-show each line in the following table after coloring the row? \documentclass[english,a4paper,12pt]{report} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage[latin9]{inputenc} ...
3
votes
1answer
96 views

How to make background in tabular cell (vertical lines)?

is there any way to make the following two horizontal lines on the background of a cell? Cell should contain either a blue or green horizontal line in the middle. Or the third option is both. Here ...
4
votes
2answers
84 views

How to get a cell colored in \bordermatrix?

I tried to use \cellcolor as suggested in color only a cell of a table but it didn't work. Can it be done? That's my code: \documentclass{beamer} \usepackage{colortbl,xcolor} ...
1
vote
0answers
68 views

How to prevent the borders of colored cell from disappear [duplicate]

the borders of the colored cells disappear in low size and appear when zooming in. Here is my code \documentclass[12pt, fleqn]{article} \usepackage[portuges]{babel} \usepackage[utf8]{inputenc} ...
2
votes
2answers
87 views

\cline is in tables too thin (when using coloured cells)

I'm having an issue where \cline appears to be drawn under the fill for table colours. With \hline With \cline (to remove the line above the cell I want blank) The line is still there, only ...
4
votes
1answer
142 views

longtable vertical column separators

I have a quite complex longtable design and I would like to add white column separators. I can add black separators using | but the placement of the lines does not seem ideal either. ...
5
votes
1answer
122 views

Fit coloured longtable to pagewidth

There is a similar question and solution posted here. However, I can't use this solution as I have a coloured table, and the given solution causes white gaps between each column. Is there a way to ...
2
votes
1answer
161 views

Combining \rowcolor and \cmidrule [duplicate]

I want to shade the heading of my table. It all worked fine until I started using \cmidrule. This is my output: Is there a way to shade the white space between the first and second row? The code ...
3
votes
1answer
108 views

\rowcolor truncating cells in table

I am working on formatting a table a coauthor originally created for publication, and running into a problem when trying to color-code rows. The degree symbol in the first data row is formatted in an ...
0
votes
0answers
14 views

Latex Table Border gets bleached to grey with cell coloring [duplicate]

I have a table here that makes use of multirow/colums. I want to colorize each second entry block grey, unfortunately the middle line in one block which is perfectly ok with white background starts to ...
2
votes
1answer
41 views

colored scratched out entries in a Table

I have a weird problem: If I put a scratched out entry (using package ulem) in a table everything ist fine. But if I color that entry it slips down a little bit. Does anyone know why? Here an ...
1
vote
0answers
116 views

\rowcolors causes missing vertical lines [duplicate]

When using \rowcolors to alternate row coloring, some vertical lines are missing in the restulting table. \documentclass{scrreprt} \usepackage[table]{xcolor} \begin{document} \begin{table} ...
4
votes
1answer
328 views

Booktab color rows with multicolumn

I would like to color certain rows in my booktabs table. I have tried the following \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{colortbl}% ...
7
votes
1answer
153 views

Alternating row colours in tabulary?

I managed to get alternating row colours working when using tabular but when I converted them to tabulary to make the tables match \textwidth the row colouring became messed up. Now it completely ...
3
votes
1answer
480 views

\cellcolor command from colortbl package not working

I've been trying to colour single cells but it's not working. Here's a MWE: \documentclass{memoir} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \begin{document} \begin{tabular}{|l|c|} ...
3
votes
2answers
316 views

Color and rules in tables with multirow

I have a problem with colors and lines in tables. I have this code: \usepackage{multirow} \usepackage{colortbl} \begin{tabular}{ll|c|c|c|c|c|c|} \cline{3-8} \cline{3-8} & & ...
2
votes
1answer
117 views

Rowcolor wont cover all cells in the row

The following code \begin{tabular}{|m{1cm}| |m{10cm}|} \hline \rowcolor[gray]{0.9} \centering Grupo & \centering Descrição \tabularnewline \hline \hline 2B & instalações que utilizam ...
2
votes
2answers
124 views

Problem with color tables when there are nested tabulars

Color tables work great when using within a single tabular environment. However, when using it within nested tabular environments, a rowcolor command spans the whole nested table instead of a single ...
6
votes
2answers
235 views

color a column red in a table

When I try to color a column red, it seems that white lines begin to emerge. Additionally the \hline changes width depending on how you zoom into the document in pdf format. It look as if the color ...
3
votes
1answer
304 views

Why does adding color to a table row increase the height?

I'm trying to make a beamer slide containing a table with the text in a row styled in a different color. However, the row's height increases when colored, as opposed to the default. The same problem ...
1
vote
1answer
110 views

Table cell/element color parameterization with xcolor

I have a table (implemented through tabular) that uses the xcolor package to shade certain cells. The shading I'm interested is both entire cell shading (e.g. \cellcolor{red}) and element shading ...
3
votes
1answer
203 views

How to give color and style to one table in lyx

I have been trying to do something like this in Lyx. As you can see is a very simple style that I been trying to reproduce but without any success. I know there are to many questions related to ...
4
votes
1answer
108 views

Specify color of the first row in table (in “newenvironment”)

I am using an specific style for my tabulars and I am looking to specify automatically the color of the text in the first row. Currently I must specify manually the color of the text of each cell in ...
1
vote
1answer
1k views

Cell color partially overriding cell border

I am using \cellcolor to give a background to some cells. The cell color is partially coming over the border of the cell as you can see in the screenshot. This is my LaTeX code for the table. ...
10
votes
3answers
2k views

Table with TikZ

I should create a table like the one here as example. I think that the best way to do a table like this one is generate some labels and use them to colorize the nodes in order to make it more ...
2
votes
1answer
113 views

Tabular environment for specified width, bg and font colorings by row?

I'm looking for a tabular-type environment which will allow me to: Specify the total width (like tabular* or tabularx, tabulary) Allow an individual row to have a specific background color (like ...