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
1answer
79 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 ...
2
votes
2answers
73 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 ...
2
votes
2answers
83 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{...
3
votes
4answers
186 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@...
1
vote
2answers
74 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
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{...
1
vote
2answers
39 views

Multicolumn cells with text wrapping and rowcolour with tabular

What seems to be so simple has turned so fiddly. All I want to do is have a basic table 3 rows by 10 columns. Row one should be highlighted lightgray and row 3 a lighter gray (defined as ...
0
votes
1answer
65 views

Color rows with \rowcolor and datatool \DTLforeach loop

I try to obtain alternate colored rows (just like the table is shown in the figure) using the datatool package and the \rowcolor command. I am following the datatool user manual example for striped ...
0
votes
1answer
93 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?...
1
vote
1answer
42 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@{}} ...
5
votes
2answers
86 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
37 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
38 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
31 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
218 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
50 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
72 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
35 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{...
2
votes
1answer
420 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 ...
1
vote
2answers
78 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
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
94 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
109 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
325 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
602 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
574 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
157 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
1answer
122 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 ...
3
votes
3answers
209 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
2answers
282 views

How to conditionally shade / color a table row using datatool?

I have been trying to shade an entire row in a table conditionally on the value of an specific entry in that row. I was trying to adapt the "stripy table" example in datatool, but it seems that I am ...
2
votes
2answers
76 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 ...
0
votes
1answer
117 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
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{...
1
vote
2answers
608 views

Customized table with colored row

How can I create a table like the following? \documentclass{article} \usepackage{svg} \usepackage{amsmath} \usepackage{float} \usepackage{comment} \usepackage{subfig} \usepackage{url} \...
1
vote
1answer
69 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
187 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
69 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
286 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
317 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
106 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
213 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
317 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
464 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. \...
4
votes
2answers
995 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
440 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 ...
2
votes
1answer
592 views

How to prevent \rowcolor from altering the thickness of cell borders?

\rowcolor seems to alter the thickness of cell borders. Example: \documentclass{scrbook} \usepackage[table]{xcolor} \definecolor{maroon}{cmyk}{0.20,0.00,0.00,0.00} \begin{document} \noindent\begin{...
4
votes
2answers
767 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,...