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.

Filter by
Sorted by
Tagged with
0
votes
2answers
38 views

Misplaced \noalign when working with tabular and tabularx and \hline

I am constantly getting the error "Misplaced \noalign" at the end of my tabularx. I already read a lot about it online for example that you need to put \\ before \hline. I did this but i am still ...
0
votes
1answer
21 views

Get current value of \arrayrulecolor for a colortbl

I want to define a special tabular environment and allow the user to specify the colors of the text and the rules independently of their values for a regular tabular environment. For the text color, ...
4
votes
3answers
176 views

Problem with highlighting a row in a table

I can highlight a row in a table (see below), but it's not centered on the text. Is there a way to fix this? Code: \documentclass[11pt]{article} \usepackage{color, colortbl,booktabs} \definecolor{...
2
votes
2answers
48 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
26 views

Two cells in one cellcolor argument

This is a follow-up to my previous question How to use cellcolor and double backslash - is there any way to do \documentclass{article} \usepackage{colortbl} \begin{document} \begin{tabular}{l} \...
1
vote
1answer
21 views

\columncolor in foreground if use \multirow

It seems that if I use >{\columncolor{green!30}}c and have \multirow content in that column, the color ends up in the foreground. The only difference in these two tables is that the second one has ...
1
vote
1answer
31 views

Remove horizontal rule in multicolumn table with colored background

I try to remove a horizontal rule in multirow / cellcolor setting: \documentclass{article} \usepackage{hhline,array,multirow,xcolor,colortbl} \begin{document} \parindent0pt \begin{tabular}{@{}|p{1cm}...
0
votes
1answer
22 views

Vertical line tabularx too long

I've seen this answer, and I've tried to reproduce it. My goal is to have all the table borders red and some of them thick. But the 2 first vertical lines span beyond the last horizontal rule, and I ...
0
votes
0answers
92 views

tlmgr install : package translator not present in repository

To reduce the size of docker image I have to install the following latex packages in docker image via tlmgr. It worked fine till now, but the build has started failing recently with the error ...
0
votes
0answers
27 views

@startpbox error still around

I have the latest version of colortbl.sty (12-18-2018) and the most current version of MikTex. The following code generates the error message: "Use of @startpbox doesn't match its definition." I am ...
3
votes
2answers
82 views

Cell not completely colored

As some other people over here, I have some troubles having the cells of my table colored properly. I read many threads about this on the forum, but all problems I could find were related to the ...
0
votes
1answer
78 views

Rowcolor for tabu

Rowcolor need to update from top row to bottom row, in tabu package row colors updating bottom to top row, how to apply color changes as default in top to bottom row color as alternative. Note: ...
3
votes
1answer
48 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} ...
0
votes
1answer
70 views

Understanding \hhline and \colorcell in Colortbl package

I can not get the border of this minimal example to look correct, the \colorcell command is overwriting the lines: \documentclass[11pt]{article} \usepackage{xcolor} \usepackage[margin=.9in]{geometry} ...
1
vote
0answers
24 views

Remove space between table cell [duplicate]

I want to add background color to my table, but do not want any borders \documentclass[12pt, landscape]{article} \usepackage{colortbl} \begin{document} \begin{table}[h] \begin{tabular}{cl} \...
2
votes
2answers
55 views

How to color a column starting from a specific row

I want to color a column, but only starting from the row that starts with C1. I have this example output. I want to remove the yellow color from the row before C1. This is how it looks: This is the ...
0
votes
1answer
30 views

\columncolor inconsistency

I'm using column color to visually highlight the first column of a regression table. First row the parameter, second row in "tiny" font the confidence intervals. I'd like the whole column to be ...
4
votes
3answers
162 views

How to resolve this clash between multirow/multicolumn and cellcoloring?

I am trying to put together a little table, but I fail to have the lines between cells displayed correctly: \documentclass{article} \usepackage{multirow} \usepackage{xcolor} \usepackage{colortbl} \...
11
votes
3answers
495 views

Layout of complex table

The MWE \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{tabularx} \usepackage{colortbl} \usepackage{multirow} \usepackage{ragged2e} \...
1
vote
0answers
105 views

Using cellcolor with tabu

I have made the following table: \usepackage{tabu} \usepackage{xcolor,colortbl} \begin{center} {\tabulinesep=1.2mm \begin{tabu} to 0.9\linewidth { |[2pt] *{3}{X[1 c]|}[2pt] } \tabucline[...
2
votes
2answers
123 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 ...
3
votes
4answers
246 views

\noalign caused by multirow and colors

I am trying to create the following table However, I keep getting the following error message ! Misplaced \noalign. \rowcolor ->\noalign {\ifnum 0=`}\fi \global \let \CT@do@...
2
votes
2answers
116 views

Fill between \toprule and \midrule

I've already tried one approach for this and had issues (Clear rowcolor at midrule) and now I've started having more. So instead of trying to fix that approach I thought it could be worth seeing what ...
4
votes
2answers
222 views

Clear rowcolor at midrule

I'm trying to make my tables look nicer by default. What I'm looking to do is fill every row between a toprule and a midrow. The next row after a toprow can be easily filled by appending \rowcolor{...
8
votes
2answers
222 views

Approximate excel spreadsheet

I am trying to approximate the following table below. After a lot of work I was able to produce the following table using the tabu package In the MWE I included the showframe option, just to see ...
1
vote
1answer
45 views

colortbl has different behavior when tabular contents are \input

I'm typesetting a complex table with the contents created by an external program. When I use \input I get unexpected behavior from \rowcolor. See the MWE below \documentclass{article} \usepackage{...
2
votes
2answers
53 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
56 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
91 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 ...
1
vote
2answers
419 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
395 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} \...
2
votes
1answer
232 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
86 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
90 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
41 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
126 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
182 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} \...
2
votes
0answers
307 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
119 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
186 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
235 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
55 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
55 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
133 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
40 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
212 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
980 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
481 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
94 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 ...
1
vote
1answer
99 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 2 3 4 5