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.

1
vote
0answers
25 views

\rowcolor from colortbl package stopped working inside 'longtabu' environment

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
75 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
47 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
19 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
33 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
29 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
123 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
18 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
87 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
431 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
273 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
59 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
43 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 ...
0
votes
0answers
32 views

Border covered by colour [on hold]

In the following (relatively) minimal example, most of the tables are correct. But in the first cell of the first one, the borders seem to be covered by the background colour. Why? I read already ...
0
votes
1answer
51 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
85 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
104 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 ...
0
votes
0answers
82 views

ColorBL rowcolor + columcolor [on hold]

I want to realise this: But I just realise the column color, Do I need to use \cellcolor or there are some alternatives. \rowcolors{1}{green}{blue} \begin{tabular}{>{\columncolor[gray]{.8}}c|>...
5
votes
1answer
141 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
448 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
164 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
54 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} \...
1
vote
1answer
134 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
139 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 ...
0
votes
0answers
2k views

How to find colortbl.sty

Can anyone help me find colortbl? I have updated MikTeX and TexStudio but I still get an error message. Thank you.
2
votes
1answer
120 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
35 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
135 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
64 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
195 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 ...
3
votes
1answer
241 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
90 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
155 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} ...
3
votes
2answers
61 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
211 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
92 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
232 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
252 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
566 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
854 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 \...
3
votes
1answer
341 views

remove thin white line in dark-colored cells

I have seen a similar problem, but none of what I have found thus far helps me... I have a pretty complicated table (I have adapted from another source, so I cannot really change the structure), and I ...
0
votes
1answer
317 views

How to keep cell border with a column background color?

I used my score board for a while now, but it appears that it's hard to know in which column I need to write. So my idea was to color every other column so I know which one I need to use. Here is ...
0
votes
1answer
218 views

How can I paint the empty line that \hhline produces on this table?

Hello and thanks in advance for you attention. I have been searching for days how to do it in order to improve the aesthetics of it. I read the colortbl manual but what was explained in the section "...
3
votes
1answer
175 views

How to color crossed out cell?

I crossed out the letter K using the answer given here... cross out arbitrary cells Then I colored the row using \cellcolor, but the cell, which is crossed out is only half filled... What do I need to ...
1
vote
0answers
75 views

The colourful longtable and change of width of lines.

I have got one colourful longtable. I want to change width of lines in some rows. I mean \cline. I have found out the information but when I did it I got white gaps in my table. See the picture below. ...
3
votes
1answer
87 views

Colortbl messing up array in htlatex

When compiling the following example with htlatex: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{colortbl} \usepackage{amsmath} \begin{document} \[\begin{array}{|l|c|} \hline ...
0
votes
1answer
220 views

multirow, colortbl and booktabs: Problem including \cmidrule and \cline (white line) when using cellcolor

\documentclass[12pt]{article} \usepackage[ a4paper, margin = 5mm, landscape, %showframe, ] {geometry} \usepackage{tabularx} \usepackage{booktabs} \usepackage{multirow} \...
2
votes
1answer
1k views

tabularx and colortbl: Cell Color When Using @{} and Cell Height When Using German Umlaut (e. g. Ü)

I am trying to make a template for gym workouts (a table that fills a whole page, see here if you are interested, German website). Problem one is that the German umlauts (e. g. Ü) have too little ...
4
votes
1answer
82 views

Rows after multicolumn rows appear wider in longtable, how can I solve it?

I experience this issue where the rows in a longtable after \multicolumn{1}{r}{Some text} are contracted: Problem: Here is an example holding all packages I currently use: \documentclass[12pt]{...