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

The tag has no usage guidance.

0
votes
0answers
9 views

Color rows with \rowcolor and datatool tables

I try to obtain alternate colored rows using the datatool package and the \rowcolor command. I am following the datatool user manual example for striped tables, but it is not enterely clear. The issue ...
1
vote
2answers
54 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 ...
1
vote
1answer
38 views

Coloring a table row: color goes outside of table?

I just finished up my table, but noticed that the coloring goes a bit too much "outside" of the table, to the left? Is there any fix for this? \begin{table}[] \centering \begin{tabular}{@{}llllll@{}} ...
0
votes
1answer
83 views

Color alternating groups (5) of rows in Table gray and white

I am trying to color every other grouping of 5 rows light gray, starting with the first 5 rows. I have attempted to use the solution posted here Does something like \rowcolors exist for groups of rows?...
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 ...
0
votes
1answer
35 views

Latex multiple tables with different colors and header alignment

I am trying to have different tables in my report. Some of them I need to have the headers one color (black with white text) and different rowcolor (Table 1). While others I need only the headers to ...
2
votes
1answer
31 views

Color background for title row in csvsimple

Assume a simple example centered on the csvsimple package. \documentclass{standalone} \usepackage{csvsimple} \usepackage{fp} \usepackage{xcolor} \begin{filecontents*}{input.csv} Foo,Bar,Baz,...
0
votes
0answers
29 views

\rowcolor in a command with optional arguments does not work ('Misplaced \noalign…')

I'm trying to create a very modular table for a project, where each row is constructed by a command. If I try to set a row color for a table row generated by a command with optional argument, gives ...
4
votes
1answer
56 views

Changing the font in every second line of the table

I've already found solutions here that work over \rowfont{} but not automatically adjust by even and odd number of lines. I think about a case function it would work well for the first lines and then ...
4
votes
2answers
201 views

csvsimple vs. conditional row coloring

I've a CSV file what I want process with csvsimple. My desire is to color some rows based on a conditional (one specified column has bigger value). Here is an MWE: \documentclass[12pt]{article} \...
6
votes
1answer
46 views

Numbers disappears with \rowcolor in siunitx table with tableformat=x.0

Following the siunitx documentation in regards to '7.13 Creating a column with numbers and units' and '7.14 Tables with heading rows' I have tried to make a table a table with currency as unit. The ...
2
votes
1answer
71 views

Cell color covers math expression

In the following colored table there is a color issue at the 2nd row. As you can see the curly bracket is partly covered by the row color. I tried to enclose the cell in a minipage, hoping that it ...
1
vote
2answers
73 views

Expanding longtable to fill page width with shaded rows

I'm working on a document that contains several long tables. For consistency, I'd like all of these tables to be the same width. I'm assuming that the easiest way to accomplish this is to simple ...
1
vote
2answers
34 views

Table: row color is not aligned when using multi columns in a tabularx environment

How can I solve the misalignment in the following table? \documentclass{article} \usepackage{tabularx} \newcolumntype{L}{>{\raggedright\arraybackslash}X} \usepackage{color, colortbl} \definecolor{...
1
vote
1answer
38 views

Span rule disappear when using colors in table

Good day! Here my requirement is table columns in different color with respective span rule. When we using \cline{} it has disappeared and overridden by next row color. Please suggest me how to solve ...
1
vote
0answers
88 views

Problem with table installed from Excel2Latex [closed]

I am writing a paper for my thesis and I'm having getting a reoccurring error about " LaTeX Error: Option clash for package xcolor. See the LaTeX manual or LaTeX Companion for explanation. Type H ...
1
vote
1answer
103 views

Colored row in beamer

I want to display the following table with some animation. Like when i transitioning from one row to the next, I want the row color to change so that a hovering effect is created. Only the ...
2
votes
0answers
299 views

easytable package and \colorrow

I use the easytable package to make isometric tables. This package provide the TAB (with caps) environment to make tables. In the same time I use the xcolor package with table option to colorize ...
0
votes
1answer
522 views

Using \multirow and \makecell

I am trying to make a table which has in total 4 rows (1 tittle + 3 data). In one column, which contains the same information for all 3 rows, I decided to use \multirow. In this multicolumn I would ...
0
votes
1answer
516 views

rowcolor doesn't fill complete cell

So I'm trying to color the rows in my table, but in the rows where I use \makecell, the colouring doesn't work properly. Somebody knows a solution for this? \usepackage{xcolor, colortbl} %kleurtjes ...
2
votes
1answer
135 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 ...
3
votes
3answers
193 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? \...
3
votes
1answer
117 views

Coloring columns in blockarray

I'd like to color individual columns in a 3x3 matrix created using \blockarray. I wish to give one color to the first column, and a second color to the 2nd and 3rd column. I found the answers two this ...
2
votes
2answers
75 views

xcolor's rowcolor blocking multi-line brackets

I am trying to make a table with different colors alternating per row, and I found that my document was compiling like this: I've had similar issues with matrices and other large braces, but not ...
0
votes
0answers
56 views

Alternating table colors not reset when longtable spans multiple pages

I've searched and found similar issues, but nothing that really worked in my application. I'm attempting to generate a pricebook with images/specs in a caption of a long table. That's all working ...
1
vote
0answers
38 views

Zebra-effect table affects array environments [duplicate]

The left delimiter of matrix environment is missing when I apply the zebra-effect using \rowcolors{1}{cyan!20}{yellow!20}. How can we prevent the zebra-effect from those environments? \documentclass{...
0
votes
1answer
115 views

I cant add zebra to my Tables

I use latex to create PDF for some academic journals and now I am using a Template to Layout articles. I have downloaded some templates and using them but I cant add none of zebra option to the tables....
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
178 views

I need rows colored alternatively but in doubles

\documentclass[12pt]{article} \usepackage[ paperwidth=8.27in, paperheight=11.69in]{geometry} \usepackage{booktabs, siunitx} \usepackage[svgnames,table]{xcolor} \usepackage{longtable} \usepackage{...
1
vote
0answers
68 views

Is there a way to make macros for building this kind of table?

Is there a way to make macros that makes a table like this where the colors changes according to the different cells, even though the first couple of cells are a multirow cell. I need to make 16 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 ...
2
votes
1answer
298 views

Removing rowcolors after long table

I am trying to have a long table in which every other data entry row is in gray. This I get easily by implementing: \documentclass{article} \usepackage[table]{xcolor} \usepackage{colortbl} \...
0
votes
1answer
105 views

Table formatting problems: colouring, decimal alignment, row and column dimensions

I am new to TeX and I have been encountering a few issues that I couldn't resolve on my own as I've been doing so far. I am wondering how to color the row while using the command \multirow without ...
2
votes
2answers
93 views

Rowcolor in tabular vs Forest node, unwanted behavior

I have problems when using tabular and forest in the same document. The row colors is also active on nodes in Forest trees. See MWE: \documentclass{standalone} \usepackage[dvipsnames,table]{xcolor} \...
2
votes
1answer
203 views

Change row color when item changes

Following the idea in this post: http://www.benjaminbiegel.com/a-latex-table-that-actually-looks-nice-2-106.html I was able to create this table: It changes the rowcolor for every row, and I need it ...
1
vote
2answers
309 views

valign=t image but vertical center in rowcolor

I would like to have symmetrical padding at top and bottom of valign=t-ed images. I tried array's \extrarowheight, which introduces some spacing between the images. However, when you add rowcolors, it ...
0
votes
2answers
429 views

Longtable and rowcolor issue

The following is a mwe highlighting the issue of an extra white space in the header of a longtable I am working on. This occurs primarily due to @{\extracolsep{\fill}} if I am not mistaken. \...
2
votes
1answer
396 views

\rowcolor does not paint \multicolumn cells

Consider the following MWE: \documentclass{article} \usepackage{colortbl} \usepackage{tabularx} \begin{document} \begin{table} \begin{tabularx}{\textwidth}{rX} Right Right Right & Text \\ Right ...
4
votes
2answers
954 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 \...
1
vote
1answer
413 views

makegapedcells disables rowcolor

I have following table \documentclass[a4paper, 11pt, parskip]{scrreprt} \usepackage{graphicx} \usepackage{colortbl} \usepackage{xcolor} \usepackage{multirow} \usepackage{makecell}%To keep spacing of ...
4
votes
2answers
705 views

Coloring longtabus (with rowcolors)

Another desperate I-google-together-my-document person here: In my thesis I want to create light grey tables with darker grey top lines, but I encounter 2 problems: If I use \rowcolor[RGB]{240,240,...
0
votes
1answer
46 views

Coloring Rows in a Spaced Table

I am trying to create a table with fractions in it and every other row being coloured. Because of the fractions, I am having to space out the rows in the table, but this seems to be conflicting with ...
4
votes
2answers
863 views

Row colour gaps in tabularx with \aboverulesep and \{}

\documentclass[]{article} \usepackage[table,dvipsnames]{xcolor} \usepackage{multicol,booktabs,tabularx} % Table settings \renewcommand{\aboverulesep}{1pt} \renewcommand{\belowrulesep}{1pt} \begin{...
1
vote
1answer
107 views

Control on booktabs elements

I need to make a similar table: I get something like that \documentclass[]{article} \usepackage{tabularx, colortbl, booktabs} \usepackage[table]{xcolor} \begin{document} \rowcolors{1}{cyan!30}{...
1
vote
2answers
624 views

Adjust table widths, spacing and color

I have a question regarding tables in Latex. I tried to find a solution now for two hours, but couldn't fix all my problems in one code. So I found single solutions for everything, but couldn't bring ...
1
vote
0answers
22 views

Tabularx ignores initial skip in \rowcolors{Skip}{Color1}{Color2} [duplicate]

Here is a MWE with initial skip 3: \documentclass{article} \usepackage[table]{xcolor} \usepackage{tabularx} \begin{document} \begin{table} \rowcolors3{blue!20}{green!20} \caption{With tabular} \...
3
votes
1answer
411 views

LyX table: “Misplaced \noalign” error in colored multicolumn row

I found out how to color table cells/columns/rows thanks to the answers here and here. I followed the examples in the documentation. In the preamble, I put: \usepackage{colortbl} \definecolor{...
1
vote
1answer
73 views

table coloring w/multirow&multicoloum

Im trying to have get a backgroundcolor at my tables consising of both multirows and multicoloums. Without any color, the table works fine. But what i want to color expands over variable amounts of ...
0
votes
2answers
276 views

How to make such a table that fits to the page limits?

I guess this is somewhat easy but I'm struggling with it for a while right now. How can I make such a table that fits perfectly to the given page layout and has (automatic) line breaks and the first ...