Skip to main content

Questions tagged [rowcolor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Table cell/row color overflows line

Problem I have a table that contains a subrow and columns for only the second column. I would now like to have a hline displayed for the sub-columns in the second column. I am able to do this, but ...
Elodin's user avatar
  • 103
1 vote
2 answers
53 views

Coloring behind \cmidrule

I want the heading of my table to be a single uniform color. However because of \cmidrule there is a weird white line in between rows. Currently, my code is as follows: \bgroup \begin{landscape} \...
Nelson Parrança's user avatar
4 votes
2 answers
207 views

Why is the row coloring broken?

I'm not quite sory why the row coloring isn't working here. For other tables with the same "schema" it's working fine... Does someone have an idea about what's wrong? % Preamble \...
Florenzen's user avatar
0 votes
1 answer
53 views

How to centralize text inside this table, increase the columns height and create a column divide in two with a diagonal line?

Well, I have been struggling for a long time with this single table. I would like to create a fancy table for the patients, colored and beautiful. I tried to centralize the text, however, I am always ...
Francesca's user avatar
0 votes
1 answer
50 views

text of the first line disappears after using rowcolors

\usepackage[table]{xcolor} \usepackage{xcolor} \usepackage{soul} \begin{table*} \rowcolors{1}{yellow!50}{yellow!30} \setlength\tabcolsep{3pt} \caption{Related Surveys Comparison} \begin{tabularx}{\...
Ossama Nazih's user avatar
0 votes
1 answer
92 views

How to set the transparency of the entire row to 0.5?

\documentclass[12pt]{article} \usepackage{lmodern} \usepackage{pdflscape} \usepackage{transparent} \usepackage{iftex} \usepackage{graphicx} \usepackage[table]{xcolor} \usepackage{makecell} \usepackage{...
Vishakha's user avatar
  • 119
1 vote
2 answers
155 views

How to color a range of cells in a row in a table?

In the below code I have tried to redefine the \cellcolor command to achieve the effect of coloring a range of consecutive cells in a row by creating a command called \colorrow. It didn't work out. I ...
tonygrey's user avatar
  • 137
1 vote
1 answer
38 views

Using \isodd in a longtable

I want to use something like \ifthenelse{\isodd{rowno}}{\rowcolor{green!30}}{\rowcolor{blue!30}}&$\mathbb{N}$ & The set of all natural numbers\\ \hline But it is not working. It gives me the ...
Dr. Dinesh J. Karia's user avatar
2 votes
2 answers
72 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} \...
David Moldes's user avatar
1 vote
2 answers
65 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 ...
Vladimir's user avatar
  • 589
0 votes
0 answers
35 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{...
S4BVGW's user avatar
  • 1
1 vote
3 answers
123 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 ...
Yosh's user avatar
  • 153
2 votes
4 answers
190 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. ...
Damitr's user avatar
  • 2,025
5 votes
2 answers
541 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, ...
Fabio Phillip's user avatar
4 votes
4 answers
163 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 ...
LukeTheWolf's user avatar
1 vote
1 answer
51 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 ...
Hugo Baucher's user avatar
2 votes
2 answers
92 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 ...
Renan Andrade's user avatar
1 vote
1 answer
85 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 ...
Figen YILMAZ's user avatar
3 votes
2 answers
127 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 ...
Annie Gabrielle's user avatar
0 votes
1 answer
47 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}}, ...
Certes's user avatar
  • 35
1 vote
2 answers
375 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 \...
murugan anbu's user avatar
0 votes
0 answers
59 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 ...
asse999's user avatar
0 votes
1 answer
83 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 ...
jeandut's user avatar
  • 235
0 votes
1 answer
92 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 ...
Flor's user avatar
  • 31
1 vote
0 answers
28 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{...
GowriSaro's user avatar
  • 572
3 votes
2 answers
339 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} \...
MASSAL's user avatar
  • 125
0 votes
3 answers
324 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 ...
Cold_Class's user avatar
0 votes
1 answer
62 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 ...
Urhixidur's user avatar
  • 101
0 votes
1 answer
193 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 ...
immediacy's user avatar
1 vote
2 answers
631 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[...
Hamzah Al-Qadasi's user avatar
2 votes
2 answers
216 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 & ...
Dhruv Nair's user avatar
3 votes
1 answer
451 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 ...
Eric's user avatar
  • 83
0 votes
0 answers
1k 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,...
Joncarre's user avatar
  • 325
0 votes
3 answers
291 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,...
Rusfearuth's user avatar
1 vote
2 answers
169 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: \...
Mario Minati's user avatar
1 vote
2 answers
357 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} ...
24suns's user avatar
  • 37
2 votes
1 answer
245 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 \...
S. Venkataraman's user avatar
1 vote
1 answer
890 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{...
Tork's user avatar
  • 61
0 votes
1 answer
206 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 \...
lucenalex's user avatar
  • 331
1 vote
2 answers
168 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, ...
Eddymage's user avatar
  • 163
2 votes
1 answer
144 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 ...
Elia's user avatar
  • 471
3 votes
3 answers
750 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 ...
wasadu's user avatar
  • 51
7 votes
2 answers
484 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 ...
Laura's user avatar
  • 71
0 votes
2 answers
487 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 ...
Reza's user avatar
  • 1
2 votes
2 answers
751 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}{...
NickG's user avatar
  • 193
2 votes
2 answers
209 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 ...
irem's user avatar
  • 23
3 votes
1 answer
97 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]{...
MNP_88's user avatar
  • 63
2 votes
2 answers
89 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: \...
Tom Solid's user avatar
  • 849
5 votes
2 answers
230 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 ...
Lukas Pezenka's user avatar
3 votes
3 answers
1k 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, ...
Hemmelig's user avatar
  • 372