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
3
votes
1answer
37 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
36 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
18 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
41 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
26 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
154 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
465 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} \...
0
votes
0answers
29 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
80 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
200 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
80 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
139 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
195 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
39 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
38 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
30 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
82 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
150 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
83 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
116 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
26 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
83 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
36 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
73 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
111 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} \...
1
vote
0answers
138 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
91 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
98 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
92 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
40 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
49 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
128 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
32 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
136 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
747 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
346 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
71 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
70 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
94 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
127 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
184 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
208 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
868 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
256 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
93 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
167 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
191 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
228 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
41 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
231 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 ...