Questions tagged [rowcolor]
The rowcolor tag has no usage guidance.
167
questions
2
votes
2
answers
62
views
Tikz symbols over colors in table
I am using the tikz package to create checkmarks and crosses, but if I color the rows, then they are only partially seen.
Here is a minimal working example:
\documentclass[table]{article}
\...
1
vote
2
answers
45
views
Row color as a command with a counter and if-else statement
I am making a table and I want to colorize odd and even rows in different colors. I made a new command with a counter. The counter is being incremented with each new row and the if-else statement ...
0
votes
0
answers
34
views
Keep failing to have coloring in the table, longtable Latex
I want to make a color for my rows in different colors. But, when I test it, it keep giving me an error. I don't know what to solve. These are the packages that I used
\usepackage{amsmath}
\usepackage{...
1
vote
3
answers
76
views
rowcolor doesn't fill width with multicolumn + makecell for tabular
I'm creating a table. I need a cell that (1) spans 3 columns and (2) has multiple lines inside it; I will specify where the line breakings occur. Also, I want the row that contains that cell to be ...
2
votes
4
answers
164
views
Some issues with longtable, math coloumn, rowcolor and arraystretch
I have a longtable with alternating rowcolor and two math columns. The rowcolor works as intended when the content of the row is in a single line, with padding both above and below the row content. ...
5
votes
2
answers
411
views
tabularray alternate line color, but do not color first column (ignore first column)
I am trying to color my tabularray's lines by alternating between a white and light gray color.
The thing is, I want the alternating colors to skip the coloring pattern for first column of my table, ...
4
votes
3
answers
129
views
Color issue with the combination of the longtable, rowcolor, and makecell
I am trying to add a list of elements into a longtable cell.
I have tried several solutions and the only one that has proved really applicable is the one I present in the following MWE.
The main ...
1
vote
1
answer
41
views
\rowcolor not working and first cell's text not vertically centered
I'm having difficulties, both trying to set my row color to gray and centering vertically the text (called 'Txt_to_V_center' in the code below) in the cell located to the left of my images.
My heading ...
2
votes
2
answers
78
views
\hiderowcolors causes \noalign error
Specifically
\hiderowcolors ->\noalign
{\global \@rowcolorsfalse \@norowcolor }
This is my current code (edited to fit requirements). I started using NiceTabular because hlines ...
1
vote
1
answer
68
views
trying to add an image, a drawing and a circuit at the same time but got wrong
Here, I am trying to draw a circuit and draw an image of how the layers would be looking like and also add an image of the element but they look so ugly. They are so close to each other and not at the ...
3
votes
2
answers
115
views
Paint columns of multirows latex
I'm trying to coloring a table with multirows. I want to "Formação Candeias" cell to be gray, "Rifte" cell to be pink and "Pré-rifte" cell to be blue.
Below I'll show my ...
0
votes
1
answer
35
views
howto obtain a striped table with csvloop?
Is this possible with csvloop command to change the row colors in order to obtain a striped longtable?
Something equivalent to late after line=\csvifoddrow{\\\rowcolor{white}{\\\rowcolor{gray!20}}, ...
1
vote
2
answers
207
views
Table Background color with toprule
I want make a table with background color, when I am using \toprule,\midrule and \bottomrule I have a white space after the rule. I want to fill the color of rule below space. MWE is below
\...
0
votes
0
answers
44
views
Row color problem with @{\hspace}
I wanted to create a table that has the textwidth without using tabularx, so I used tabcolsep and hskip to keep the text left-aligned. But now I have an issue with the rowcolor as seen in the picture ...
0
votes
1
answer
75
views
Incorrect formatting of table with graphics inside using centering statements
I am trying to produce this beautiful table with ducks.
I have two formatting issues that are connected:
the most annoying one is that when zooming on the table
the white \Xhline or the color bands ...
0
votes
1
answer
85
views
Can't colour the right rows table
I have made a table with a table generator. I want the two first rows to be white, the following row to be grey and white intermittently.
This is the code I generated:
Preamble:
(long since this is a ...
1
vote
0
answers
27
views
below space not coming correctly using colortbl.sty and rowcolor
My codes are:
\documentclass[executive,twoside, justified, symmetric, notoc,openany]{tufte-book}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{colortbl}
\usepackage{setspace}
\usepackage{...
3
votes
2
answers
295
views
\rowcolor makes the text disappear
I use rowcolors{...} to color a table, After that, some text from my column disappear slightly .
Why is that, and what can I do to fix the error?
\documentclass[12pt,a4paper]{article}
\...
0
votes
3
answers
245
views
How to make a longtable with \extracolsep zebra striped
I found out from this question that one can make a longtable zebra striped by using
\rowcolors{2}{white}{gray!25}
So I tried it but noticed that it doesn't look good in my project - the stripe sticks ...
0
votes
1
answer
48
views
How to get \clearpage and \rowcolor to work together in a longtable?
I have this multi-page longtable where I need to nudge a row over to the next page for layout purposes. Normally I'd just start the row with \clearpage (and this has worked elsewhere) but this time I ...
0
votes
1
answer
148
views
Rowcolor gaps in the intercolumn space [closed]
I have a table that uses alternating white and gray colored rows, but there is always a lack of color applied to the intercolumn space. I have tried what other threads suggested in using variations of ...
1
vote
2
answers
376
views
multirow with color does not work properly
First, there is not any error message, but I have this problem in which I want to merge rows horizontally, but I do not know why the text appears like that:
Code:
\documentclass{article}
\usepackage[...
2
votes
2
answers
206
views
How do I add vertical space of 10pt between the rows so that it is not as congested, while still maintaining the row colors?
\begin{document}
\begin{table}[H]
\centering
\begin{tabular}{ccccccccc}
\toprule
String Tension & \multicolumn{8}{c}{Rebound Height / m $\pm$ 0.05 m}\\
kg/ $\pm$ 0.5 & ...
3
votes
1
answer
376
views
How to reset alternating row colors using xcolor and longtable?
I am attempting to automate alternating row colors in a longtable environment. My rows alternate between gray and white, and the alternating persists across pagebreaks. My issue is that I would like ...
0
votes
0
answers
817
views
Undefined control sequence using \rowcolor, \cellcolor and \multicolumn (packages already installed)
I am using https://www.tablesgenerator.com in order to create my table. The code is:
% Please add the following required packages to your document preamble:
% \usepackage{multirow}
% \usepackage[table,...
0
votes
3
answers
250
views
The taburowcolors doesn't change the row color
I need to highlight the special line on my table. For doing that, I use the next configuration:
\documentclass[9pt]{scrreport}
\usepackage{tabu,booktabs}
\usepackage{booktabs}
\usepackage{numprint,...
1
vote
2
answers
155
views
How to do \nopagebreak in xltabular with \multicolumn and \rowcolor?
After reading tons of answers here, the docs and log output I have no idea to solve my \nopagebreak issue.
Based on the How to insert a \pagebreak before a \multicolumn? answer I build this MWE:
\...
1
vote
2
answers
260
views
Tabularx alternate row colors not working
I'm unable to get alternate row colors to display for any of my tables inside sections. What am I missing?
My MWE for a sample section:
main.tex
\documentclass{article}
\usepackage[document]{ragged2e}
...
2
votes
1
answer
180
views
Problem with \rowcolor command in nicematrix package
I am having problems with the \rowcolor command in nicematrix package. Here is a MWE.
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
We define the product \(AB\) by
%Example 1
\...
1
vote
1
answer
634
views
Alternating row color in all tabularx
I would like to colour every alternating row in every tabularx.
I know that I may gain this for all normal tabulars by using the following code in the preamble:
\usepackage[table]{xcolor}
\definecolor{...
0
votes
1
answer
190
views
Is it possible to color the rows (with different colors in each row) in an xltabular environment?
I would like to color the text containing in the table row but with different colors in each row. How can I do this? Below, I show my minimum code.
\documentclass[12pt, article]{memoir}
% Packages
\...
1
vote
2
answers
124
views
Rowcolor not working when tabular contents is in a separated file
I am having some issues in using rowcolor in some tables that have the contents in separated files. The following code works normally
\documentclass{article}
\usepackage{booktabs}
\usepackage{color, ...
2
votes
1
answer
134
views
rule, colorbox, space
I have three questions about this table:
The space between the \toprule and the description is greater than the space between the description and the \midrule. How Could I change this that both ...
3
votes
3
answers
527
views
\rowcolors command (xcolor, option [table]) and different table environments
Using xcolor.\rowcolors together with booktabs.\midrule I have encountered some weird behaviour. To make it plain: the point is not whether or why the tables look so utterly ugly ...
In the MWE there ...
7
votes
2
answers
405
views
rowcolor too large when removing space on rows
I am a LaTeX beginner and facing an issue that I can't seem to find the answer for... I am creating a table (using booktabs but my issue also occurs when not using the package), and whenever I remove ...
0
votes
2
answers
354
views
how can shading rows in table
I wanted to do shading in a table according to its rows. For example, if you see the table below:
a b c d
a 90 10 0 0
b 0 80 10 10
c 0 0 95 5
d 0 10 5 85
I want to shade ...
2
votes
2
answers
564
views
Reset rowcolors of table
I had some tables with alternating row coloring, using \rowcolors{1}{white}{gray} and tabular environment. After that, I wanted to reset my rowcolors to the default, so I did \rowcolors{1}{white}{...
2
votes
2
answers
190
views
How do I reduce the height of a colored row in a table?
I want to get this:
I wrote this, when I put [-1.5ex] after \\, I can get reduced row height but the color of the row is still normal row height. How can I make the color's height reduce? Any ...
3
votes
1
answer
90
views
rowcolor uneffective in longtable with makecell [duplicate]
I'm trying to color the rows of a longtable with rowcolor as follow (in the MWE I have onyl included few rows of the very long table):
\documentclass[a4paper]{article}
\usepackage[fontsize=8pt]{...
2
votes
2
answers
76
views
Altering table row colors trought multirow
I can alternate the color of the rows in a table with \rowcolors. However, when I use \multirow it makes breaks the 'logical coherency':
How it works:
How should it works:
MWE for the first output:
\...
5
votes
2
answers
174
views
Tabularx, rowcolors, rotated multirow text in table
I'm having issues with my tables, specifically with alternating row colors. In my tables, I have a column in which I display the category of the row entry. E.g., for olympic weightlifting, I ...
3
votes
3
answers
868
views
Three alternating row colours in a table with multirow
I have an horribly complex LaTeX table which I try to make a bit more readable.
I would like to use three different row colours, starting at the batch size column.
It is very difficult to do so, ...
1
vote
0
answers
51
views
`\rowcolor{}` does not color the row in a table [duplicate]
My goal is to color a row as lightgray, but instead of coloring a row it just prints green string in the row. What my be the reason for this and how can I fix it?
I am using following example with ...
2
votes
1
answer
51
views
Alternating rowcoloring by xcolor not identical for all tables
I am trying to apply alternating colors to my document, by use of the xcolor package with the table option. As far as I am aware it is possible to define the alternating colors in the preamble, so ...
1
vote
3
answers
505
views
\rowcolor and @{} issue
In the next example we can see that
\rowcolor does not take into account the declaration @{} in tabular preambles.
Is this a normal behavior?
Is there some elegant way to avoid that spurious filled ...
0
votes
2
answers
382
views
How make colored headrow in a table?
I have the following table
\newcommand{\headrow}{\rowcolor{black!20}}
\definecolor{Gray}{gray}{0.90}
\begin{table}[ht]\rowcolors{1}{Gray}{white}
\begin{center}
\caption{Test Table}
\begin{tabular}{l|...
0
votes
1
answer
180
views
Color \multirow?
I want to draw a table using threepartable. I want the following structure:
1- the first line includes 2 rows:\multirow
2- the second line includes also two rows
3-the third line include 3 rows
4- ...
1
vote
2
answers
151
views
mult-colored multirow tables (not using \multirow{-x})
I wonder if there's a different way to do the alternate colors in a multirow tables.
Everywhere people use "\multirow{-x}" but i would like to know if there's a way of doing it without any ...
0
votes
0
answers
95
views
Highlighted column and row not working. How to resolve it?
I need to highlight some columns and rows in the table. But the following code is not working. So kindly help me to resolve the issue. I am using miktex with winedt. Thank you.
\documentclass[CEJMed,...
0
votes
1
answer
384
views
How to prevent overflow of row/cell colors in booktabs? [duplicate]
Based on this answer you know how to easily create rows with background colors. This also works for booktabs.
Edit: This is how it looks by default with \begin{tabular}{lccc}:
But we want to change ...