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 [colortbl]

{colortbl} is a package which implements a flexible mechanism for giving coloured ‘panels’ behind specified columns in a table. It requires the array and color packages.

2
votes
2answers
30 views

How to color a table column

I have this sample table. I made the script below but I still need few requirements that I do not know how to: 1) I need to apply the gray color one row above (i.e. the cell which contains the word ...
0
votes
1answer
18 views

Table header color not working as i want

I want the header of my table to be red but as you can see in the example it is red but also it seems there is a white extra column left to it. I can not seem to figure out why it is there. And how to ...
1
vote
2answers
58 views

How to treat with dcolumn tabular format and colored values?

I found here this trick for formated text coloring for use with dcolumn package. However, it seems roughly redefine the \DC@endright statement and gives two wrong behaviours with values which have ...
0
votes
1answer
56 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
42 views

Cell color not working

For some reason, I can't render colored cell with \cellcolor anymore. MWE below. It worked in TL 2018, but I can't get it to work in TL 2019. \documentclass{article} \usepackage[table]{xcolor} \...
1
vote
1answer
54 views

tabu: Alternating colors of rows

Why does the following MWE not work as expected to make the row color alternate? \documentclass{article} \usepackage{tabularx,booktabs,tabu,amsmath,colortbl} \usepackage[table]{xcolor} \begin{...
1
vote
1answer
20 views

Change color of table boundary caption, label and table contents

Please find the code and the corresponding output below \documentclass{article} \usepackage{colortbl} \begin{document} \begin{table*}[] \centering \renewcommand{\arraystretch}{1.2} \caption{\...
2
votes
1answer
82 views

Visible interruption effect for a cell into a tabular

Starting from my question Does a symbol for glasses exist? and from the best @Milo's answer, I have created this MWE, using the macro \advice, \documentclass{article} \usepackage[T1]{fontenc} \...
2
votes
1answer
35 views

Table with colour cell without blank space in the corners

This code allows you to create a table in which the first two rows have colors. I want to create the same table but without the blanks that are left, right and middle of the cells, so that it stays ...
0
votes
0answers
48 views

The incompatibility between package colortbl and the \begin{cases}…\end{cases} environment

Here is the code I have problem with: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{colortbl} \begin{document} \begin{equation} f(x) = \begin{cases} 1, &\mbox{if $x=1$} \\ 2, ...
3
votes
2answers
84 views

How to color tabu row background in beamer LaTeX

I am trying to color the background of the third row of this tabu environment red: \documentclass{beamer} \usepackage{tabu} \usepackage{colortbl} \begin{document} \begin{frame} \begin{tabu}{XX} \...
0
votes
1answer
38 views

Tabular environment with array package and [table]{xcolor} gives errors [closed]

The following code does not build after having installed latest MikTeX from scratch, with all packages updated: \documentclass[a4paper, 12pt]{article} \usepackage{array} \usepackage[table]{xcolor} \...
1
vote
0answers
59 views

\rowcolor from colortbl package stopped working inside 'longtabu' environment [closed]

Problem description After a recent system upgrade on a Debian testing machine with TeXLive 2018, a \rowcolor command inside a \begin{longtabu} environment no longer works. Package versions according ...
5
votes
2answers
84 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
67 views

How to Remove Horizontal Lines From Colored Multirow Table [duplicate]

I am having some trouble removing the "white lines" from a colored table (where it says 3 and 4). \documentclass{report} \usepackage{wrapfig} \usepackage{colortbl} \usepackage{booktabs} \usepackage{...
1
vote
1answer
43 views

\rowcolor not working in latex IEEEtrans

I am trying to colour rows in some tables in a latex IEEEtran article but the colouring does not show at all, and no error is thrown as well. Here is the snippet of code I used: \usepackage{array, ...
1
vote
0answers
38 views

colortbl conflict with tabular parbox? [duplicate]

I have a large document that I want to fix column widths in several tables and I have previously done so using p{XXin} column types (where XX is some number). I recently moved to a new computer and ...
1
vote
1answer
42 views

colortbl is ignoring \\[] in tabular (MiKTeX, Windows 7) [closed]

In the following sample code, the 10pt row separation is ignored if I use the colortbl package. I know this has been an issue and was reported last year and apparently it was fixed. I am running ...
3
votes
1answer
126 views

colortbl changes array behaviour

David Reiter passed the following code to me for generating CCG proofs. This works well provided one does not load colortbl. Without colortbl I get: and with colortbl I get: Is there a way to fix ...
1
vote
0answers
25 views

colortbl seems to break longtable [duplicate]

I've been using both colortbl and longtable together, on big documents, for years (the former to color rows, columns, or individual cells), and the latter to allow big table to break over pages. In ...
1
vote
1answer
106 views

Table background rule color

In LaTeX, is it possible to set table alternative rule color i.e., first column background color GRAY then hline rule color WHITE(hline), if second column background color WHITE then hline rule color(...
11
votes
1answer
550 views

Tabu very recently stopped working with color/xcolor or with fancyvrb

Below is a MWE with a tabu table that compiled perfectly fine up until I updated packages today (Dec. 16, 2018) with TeX Live Utility. \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{...
4
votes
1answer
314 views

Convert DVI into PDF properly

For viewing my work when I'm programming LaTeX, I decided to use the DVI format. The reason is that the result is perfect compare to the PDF. For example, the borders of tabulars appear perfeclty ...
1
vote
0answers
67 views

Has anyone experienced conflicts with colortbl?

I was just trying to insert a vertical line between columns in a table and I couldn't figure out why it never showed up in my output. So I started from scratch with a minimal setup and added my ...
0
votes
1answer
51 views

colortbl, multicolumn and settototalheight don't work together

I have a script that generates super-complicated tables, which need individual cells with coloured backgrounds. At the moment I'm using my own macro to generate the coloured cells, but I would rather ...
1
vote
1answer
76 views

How To Color A Single Multicolumn Cell

I am trying to color individual cells inside of a table containing multicolumn cells, however Using \colorcell, or \columncolor results in cells which have white padding on the right hand side. I ...
7
votes
1answer
106 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 ...
2
votes
1answer
139 views

rowcolor command from colortbl package leaves unwanted gaps in shading between columns

I would like to highlight the first two rows of my table with a custom shade of gray. For this, I thought of using the \rowcolor environment from the colortbl package. However, its usage seems to ...
5
votes
1answer
167 views

problem with new array.sty, colortbl.sty, and tabu.sty

This is a follow up to new array.sty and colortbl.sty incompatibility? The problem is that with the current version of array.sty the \\[5mm] is ignored. The solution provided in the linked question ...
10
votes
2answers
637 views

new array.sty and colortbl.sty incompatibility?

I just upgraded my texlive distribution and can no longer insert space in table rows using \\[x pt] syntax when colortbl is loaded. It seems that recent changes to array.sty might be the problem as ...
3
votes
3answers
194 views

Getting black of a cell in a table

In the following code, I tried to create two rows for each cell in the first column. I want the rows be colored. However, the first rows of the colored cell get black. How can I solve this problem? \...
1
vote
3answers
72 views

Issue with coloring multirow cells [duplicate]

I have a simple table like: \documentclass[varwidth]{standalone} \usepackage[table]{xcolor} \usepackage[english]{babel} \usepackage{multirow} \begin{document} \begin{center} \...
2
votes
1answer
150 views

how to obtain vertical and horizontal gray bars in a matrix? [duplicate]

I need your help to obtain the grey bars in this matrix:
1
vote
2answers
161 views

\hhline with || separation in coloured table

I want to create a table like the following. Using booktabs is unfortunately not an option. I need to colour the table header and want to show on which columns the \multicolumns are used. Therefore I ...
2
votes
1answer
169 views

Coloring the *text* of the entire row in a table [duplicate]

I can use colortbl to color the background of a row by setting \rowcolor{Gray}. How can I set only the text to gray and keep the white background instead?
0
votes
2answers
37 views

Splitting a table cell between right and left alignment with colored rows

I'm trying to make a table that's essentially a feature matrix. Entries are grouped, and each group is a set of completions to a sentence. Because of space constraints, I'm trying to keep the start of ...
2
votes
1answer
195 views

line problem when use color table

after I add color to table, it has some problem for dispalying, here is the sample code: \documentclass{article} \usepackage{xcolor,colortbl} \definecolor{Gray}{gray}{0.85} \begin{document} test a ...
1
vote
1answer
68 views

Cancel \rowcolors for a specific cell

In some tables, the cell in the top-left corner is meant to be left empty. To do this in tables that use \rowcolors, I do \cellcolor{white}. However, I'm now using some old tables of this kind in a ...
2
votes
1answer
245 views

adding headers to pgfplotstable with color highlighting

I have been trying for a long while now to put headers onto this: I want to change the column headers from 0 to 10 into $O_{x}=0.0$ to $O_{x}=1.0$ but I can't seem to figure out how to do it. I have ...
0
votes
0answers
52 views

How to make a command that colors the next 'n' rows of a table with some given background color, and then invokes some other command

I'd like to know if it's possible to make a LaTex command that does the following: The parameters to this command are 1) some integer (we'll call it n, for reference), 2) a color name, 3) the name of ...
5
votes
1answer
278 views

Does something like \rowcolors exist for groups of rows?

I need to find a package or else learn how to make a tex command definition that does something very similar to the \rowcolors command for tables, for creating a table with alternating background ...
0
votes
1answer
108 views

tabu rowcolor multicolumns

I try to put the background of the first line in color. I try like the commented line but I have a compiled errors. I try with \tabuphantomline. But I didn't succeeded. \documentclass[11pt]{report} \...
4
votes
1answer
175 views

Coloring table row ruins \pm symbol

If I use \rowcolor the \pm symbol that I have in the row gets cropped, it seems. MWE: \documentclass{article} \usepackage{dcolumn} \usepackage{xcolor,colortbl} \definecolor{lightgray}{HTML}{EEEEEE} ...
2
votes
2answers
69 views

How to create a coloured table usig multirow and rotated text?

If someone look for mine today's question, is all about a table. Despites the important tips that I received, I still don't know how to create my table. So I decided to show an image of what I exactly ...
1
vote
1answer
237 views

How to set the vertical multirow alignment?

I have a coloured table with some multirows. I have observed that when I use multirow, sometimes, especially when the text has to make a linebreak, the table losses its vertical alignment. How can I ...
1
vote
0answers
102 views

How to control table page breaking using \longtabu, \multirow, colortbl and \hhline

I have a probably quite specific LaTeX problem using tables, due to the needed specification of the table, which are (mainly): I need support for multiple pages I need a lot of multicolumns I need ...
1
vote
1answer
258 views

Color table cell, error

Here's the problem, in TeXShop or TeXnicle, the following code complies without fuss: \documentclass[10pt]{article} %\usepackage{colortbl} \usepackage{amsmath} \begin{document} \begin{center} \begin{...
1
vote
1answer
286 views

How to expand table row color to fill a table width

I have a table. I want to color some rows. The problem is that the color does not fill the whole row. The table looks like this: How to expand the row color so that it fills the whole row? the ...
1
vote
1answer
635 views

Problem with horizontal line in table using \hhline

The following example shows the problem in my table. There is a unwanted white rule in the left. How can i fix that? Thanks for help! \documentclass[dvipsnames,12pt]{article} \usepackage{xcolor,...
4
votes
2answers
959 views

How to set text color and font type of header row for all tables in LaTeX?

I have a document with plenty of tables and I would like to apply the same formatting of the header row for all of them, without making manual modifications for each tabular. I now use \...