Questions tagged [rowcolor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
3answers
32 views

Rowcolor overhang with makecell

When I trim the sides of tables using @{}, the \rowcolor hangs over the sides. I've fixed this with <{\kern-\tabcolsep} on the first and last column (according to this question). However, if \...
0
votes
1answer
27 views

Rowcolors in a longtable with three parts

I have a longtable inside a ThreePartTable environment and I want to have alternating row colors across page breaks. I want to have no color on the first row, since the header is also colored. The ...
0
votes
2answers
30 views

Coloring cells in a table redux: Vertical and horizontal bars hidden in most views/zooms

When using \cellcolor or \rowcolor to shade a cell (or row of cells) in a table, the vertical and horizontal separators become randomly obscured or hidden when viewing the PDF. This is true for ...
0
votes
0answers
16 views

Rowcolor, Multicolumn, and Tabu

Ok, I want to create an environment that prepares my table in such a way that I have consistent results. \documentclass[10pt]{article} \usepackage[table]{xcolor} \usepackage{graphics} \usepackage{...
0
votes
1answer
29 views

Table with multicolumn highlighted row

I'm trying to make the following table: I can create the structure easily. However I have a problem in the row colour: \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}...
0
votes
0answers
8 views

color table rows with more than 2 colors, restarting every (n) rows

My first question here. MWE provided, short and detailed. I want to color the rows of a table, not just alternating 2 colors, but a series of multiple colors, or perhaps 6 shades of grey. *cough* ...
0
votes
1answer
38 views

\rowcolor doesn't fill complete cell

I use a template to create use cases in latex (Template information). This is how it normaly looks: The latex source to use it looks like this: \begin{usecase} \addtitle{test text to show the ...
0
votes
1answer
23 views

Coloring Entire Rows in a Multicolumn [duplicate]

\documentclass[a4paper, twocolumn, 12pt, notitlepage, nofootinbib]{revtex4-1} \usepackage[top=25mm,bottom=25mm,left=25mm,right=25mm]{geometry} \usepackage[table]{xcolor} \usepackage{amsmath,amsfonts,...
4
votes
3answers
190 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{...
3
votes
1answer
79 views

TabularX - with rowcolor - Unwanted gap between columns

I have a problem with the rowcolor of the tabularx. I have a column with dimensions where I want all the 'x' chars centered. I thought of two solutions. One with the c@{ x } definition in the table ...
1
vote
1answer
37 views

\color makes my text not aligned in table header

I'm trying to make my entire header row colored with \rowfont but when I do the top ruler is is to far above the contents of the row. I've narrowed the problem down to \color like in the MWE below, ...
2
votes
3answers
786 views

How can I to do this?, but with lines join

I used Excel2Latex % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} \begin{tabular}{|r|r|r|r|r|} \cmidrule{1-1} \rowcolor[rgb]{1,1,...
4
votes
3answers
563 views

How to get rid of vertical white lines in a table?

When coloring rows of my table with a dark color, I get these white vertical lines where borders would normally be. How can I get rid of them? \documentclass[11pt, a4paper]{scrbook} \usepackage[left=...
1
vote
0answers
34 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
45 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
104 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
118 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
94 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
174 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
67 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
44 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
293 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
154 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
288 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
48 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
65 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
202 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
101 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
565 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
159 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@{}} ...
1
vote
1answer
129 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
135 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
107 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
71 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,...
4
votes
1answer
80 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
401 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
71 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
108 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
279 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
56 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
63 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
150 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
211 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 ...
3
votes
0answers
646 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 ...
2
votes
1answer
2k 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
1k 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 ...
3
votes
1answer
428 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
433 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
195 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
149 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 ...