Questions tagged [rowcolor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
16 views

\rowcolor and nested loops with datatool package

I can't explain why using \rowcolor into a nested datatool loop gives this strange behavior: The code: \documentclass{article} \usepackage[table]{xcolor} \usepackage{datatool} \begin{filecontents*...
0
votes
1answer
28 views

Incomplete row table colors

Quick question regarding colouring rows in a latex table: I simply want to colour the first row in the following table light gray as in the image. Unfortunately the colour does not seem to fill the ...
2
votes
2answers
96 views

How do I avoid and entry being shifted when using \multirow and \rowcolor at the same time?

I have been looking around for and answer a while now and figured out how to make the entry in the \multirowvisible. But now the entry is being shifted for some reason. Can you please help me? Down ...
1
vote
1answer
63 views

In newenvironment, rowcolor fails with “\rowcolor -> \noalign”

I have tried (and researched) many ways in getting this to work correctly, but have ultimately failed. I am attempting to have different commands call new rows with each command giving a different ...
2
votes
1answer
63 views

>{\kern-\tabcolsep} does not work in p-columns

If you colourise a row in a table, @{} does not remove the colour from the side bearings, as demonstrated in below figure. To remove the colour, you may direct a kern into the table column using >{...
0
votes
0answers
37 views

rowcolor removes the vertical lines of the table

After compiling (using pdflatex) the following \documentclass[12pt]{amsart} \usepackage{amsmath,amsthm,amssymb,amsxtra,amsopn} \usepackage{xcolor} \usepackage{colortbl} \usepackage{etoolbox} \begin{...
2
votes
2answers
46 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
28 views

Specific-length vertical padding in table (with text wrapping, alternating row colors, and specified widths)

I'm trying to create fixed-width (i.e. spanning the whole \textwidth) tables, with alternating row colors and arbitrary alignments (horizontal and vertical), that have evenly-spaced specific-length (i....
3
votes
4answers
207 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
89 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
160 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{...
1
vote
1answer
44 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
49 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
106 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 ...
1
vote
2answers
84 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
226 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
77 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
120 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
102 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
49 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
48 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
40 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
68 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
279 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
59 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
79 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
121 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
42 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
41 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
117 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
145 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
430 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
924 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 ...
1
vote
1answer
791 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
222 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
301 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
153 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
92 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
60 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
39 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
122 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
92 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
199 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
71 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 ...
6
votes
1answer
364 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
386 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
109 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
101 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
242 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
388 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 ...