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.

1
vote
2answers
635 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
418 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
75 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
279 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 ...
1
vote
2answers
283 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 ...
0
votes
1answer
45 views

alignment of rows in tables

Below is a sample of my table and I just can't make out why it is behaving the way it does. Before applying rowcolor everything works fine. \documentclass[a4paper]{scrreprt} \usepackage{siunitx,...
3
votes
2answers
312 views

Best way to add space between columns with alternating colored rows

I did some search on the topic without success. Most of the time people want to remove spaces, or have problems with last column, etc. In my case I want the spaces to be there and between columns. I ...
3
votes
1answer
469 views

How to prevent \rowcolor from overriding row lines in PGFPlotsTable?

A relatively new to PGFPlotsTables but find it very useful for formatting large tables and pulling in external data in LaTeX. However, I'm running into the following issue. When I want to color the ...
3
votes
1answer
894 views

Table \rowcolor \multicolumn color displacement

I have the following table: \documentclass[a4paper,12pt,twoside]{book} \usepackage[utf8x]{inputenc} \usepackage[table,xcdraw]{xcolor} \usepackage{tabularx, threeparttable} \usepackage{multirow} \...
3
votes
1answer
752 views

Misplaced noalign when using rowcolor

I am trying to create a table with colored rows and colored hrules between the rows, but I am getting a "Misplaced \noalign. \rowcolor" error. The following example reproduces this problem: \...
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
2answers
499 views

Table: gaps in row color

I have the following table. \documentclass{article} \usepackage{lscape} \usepackage[table]{xcolor} \usepackage{tabu} \usepackage{makecell, multirow} \renewcommand\theadfont{\bfseries} \begin{...
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{...
3
votes
3answers
198 views

unset rowcolor in eqnarray

I have a document with a defined \rowcolors Now in a math environment, a cases element is rendered with this table background overlapping the brace: This can be fixed by adding \rowcolors{1}{}{} ...
0
votes
1answer
330 views

Problem with tabularx's vertical spacing

I have a problem with the way tabularx (or is it booktabs?) is handling vertical spacing between horizontal lines and the cell content / background color. MWE: \documentclass[paper=a4,fontsize=12pt]{...
4
votes
1answer
905 views

\rowcolor overwrites column divider

I have a strange issue where my rowcolor command is overwriting the column separator in some PDF viewers. Acrobat (unfortunately) is the only one that has the rendering issue. The issue exists in ...
0
votes
1answer
342 views

Resolve rowcolor and column separator clash?

I want to create a table with Text aligned around the separator "V-" and color it using \rowcolor. The normal column separator @{V-} doesn't work with \rowcolors, thus I'm searching for a way to do it ...
9
votes
1answer
920 views

Why is the start row of \rowcolors ignored in tabularx?

Seems like \rowcolors when used for a {tabluarx} doesn’t work properly: The specific number of the first row to be colored is ignored. This si not the case for a normal {tabluar}. In both tables the ...
2
votes
3answers
1k views

How to setup a longtable with booktabs and a colored (head) row

I'd like to make a longtable with the first (head) row colored in grey. Since booktabs inserts white space below the \toprule and above the \midrule, i need to insert a colored rule: \newcommand*{\...
1
vote
1answer
209 views

remove space between columns in longtabu with rowcolors

I use the ltxtable package to create long tables with variable width columns. Using this I want to completely remove the space between to table columns by doing this: \documentclass{scrbook} \...
3
votes
1answer
161 views

row color and a toggle

I'd like to create a new command that I would repeat in front of each row, and which would colorize the row if a toggle is true, and would leave it uncolored if the toggle is false. I would change the ...
6
votes
3answers
659 views

Table xcolor @{,} \rowcolor broken text

i am using a formatted table like this: \documentclass[a4paper,10pt]{report} \usepackage[table]{xcolor} \begin{document} \begin{tabular}{|c|r@{,}l|c|c|c|c|} \hline $B_N$ ...
3
votes
2answers
148 views

Duplicating MS-built Table Formatting in LaTeX

I have a table made in MS Office and I'd like to recreate it using LaTeX. I've attempted a number of solutions using Table+Tabular (using this as a template); this has worked until I try to implement ...
5
votes
3answers
428 views

Table/Tabular Row Spacing

I'm trying to tex a table with alternating rows. It's working but there is something like a non-colored gap/spacing between the rows, so it looks very weird: Here is the code for the example above: %...
1
vote
1answer
196 views

Alternating \rowcolor using \if

I know that the best way to altern row color is using \rowcolors{2}{}{} but on my .tex file \usepackage[table]{xcolor} doesn't work so I am trying to reach the same result with \if. I would like to ...
0
votes
3answers
119 views

If condition without any package?

I create a table by rows like this: \row{1}{Sunday,Su,05.09.2015}{N}{08:00,17:00,12:00,13:00}{8.0,1}{Airplane Hangar} How can I prove, if the first parameter is 0 or 1, an if it's 1 then set a ...
5
votes
2answers
879 views

Tabularx option in tcolorbox: how to colored the first row?

I like to have the first row in table make with tcolorbox with tabularx option with different color as it is in the other rows. I try to use \rowcolor{<color>}, but i received error: Misplaced ...
7
votes
2answers
6k views

\rowcolor for a \multirow

The \multirow text is covered by the background color. Does someone know why and can fix it? \begin{table}[h] \caption{caption} \label{tab} \centering \begin{tabular}{cccccc} ...
1
vote
1answer
449 views

Table with multirow and rowcolors

For a template I'm creating at the moment I need a table with alternating rowcolors in the first two columns and one multirow (third column) containing an image. This multirow should not react to the ...
3
votes
1answer
645 views

Adjust longtables to textwidth

I would like to adjust my longtables in a document to the textwidth. What would be the best way to go about this? The code I'm currently using is: \documentclass{article} \usepackage{lipsum} \...
0
votes
1answer
135 views

How can i deal with the justification of my text in tabularx?

How can I center the two last columns of my text in the next table? \documentclass[headsepline=true,paper=letter,headings=big,bibliography=totoc,x11names,DIV=10]{scrbook} \usepackage{typearea} \...
6
votes
2answers
1k views

How to color a portion of a row in bmatrix

I am trying to color just a portion of rows of a bmatrix. How would I achieve this? Here is what I have so far: \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \[ \begin{...
0
votes
1answer
187 views

Coloring rows problem

I need fill table rows with color, but i have few problem with it: If i do this some columns are overlayed by background (first pic - multirow). I see white borders. (I don't understant why - they ...
2
votes
2answers
875 views

Color in multicolums, in memoir

I have this code: \begin{table}[H] \label{tab:brud} \centering \caption{Tabel over dominerende laster ved brudgrænsetilstanden.} \begin{tabularx}{1\textwidth} {XX>{\raggedright\arraybackslash}...
0
votes
0answers
19 views

Coloured cells in Tabular printing over table lines [duplicate]

I'm using Tabular and XColor to color some cells of a table, but some of the coloured cells are "printed above" the lines of the table (see attached image, which shows part of the table). How could I ...
0
votes
0answers
31 views

Rowcolors and horizontal lines do not mix [duplicate]

Using rowcolors causes the horizontal and vertical lines in my table to behave strangely . The second horizontal line after the first row is not visible, and the vertical line dissappears in the ...
4
votes
2answers
2k views

Misplaced noalign after rowcolor in multicolumn

I want to use row coloring with \multicolumn. The MWE below works, but if I change to the commented, colored line, I receive a "misplaced \noalign". What do I wrong? \documentclass{article} \...
0
votes
0answers
50 views

Why row color overlaps with row border [duplicate]

I am using the following latex code to highlight some row of a table useing rowcolor command. However the table borders in those rows are overwritten by the row color. Why is it happening? How can I ...
8
votes
1answer
10k views

Undefined Control sequences \rowcolors

Getting errors with alternating rows saying undefined control sequences. Any help please! \documentclass{article} \usepackage{xcolor} \usepackage{booktabs} \usepackage{graphicx} \begin{document} \...
0
votes
1answer
102 views

Delete superfluous line in longtables (LaTeX)

This is the first table I have: \begin{longtable}{|p{4cm}|p{4cm}|} \caption{Caption of the table}\\ \hline \rowcolor{black} \textcolor{white}{\textbf{Column 1}} & \textcolor{white}{\textbf{...
1
vote
2answers
1k views

Table: white spacing with rowcolor, multicolumn and multirow

I have the following table : It uses \rowcolor, \multicolumn, \multirow but it also has a wide white spacing between the cases. I need the title "Cobertura del transporte en el municipio de ...