Hi there,
I am trying to make a coloured row in my table. The tex file of that section is attached. I have tried a few ideas from this forum but for some reason unsuccessfully... Wanted to ask if anyone could help me out with that.
I'd need the second row in yellow...
Thanks a lot..
ak
Graphics, Figures & Tables ⇒ coloured row in a table
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
coloured row in a table
You can use the colortbl-package, and add
at the beginning of the row in question. See the documentation (PDF) for details.
Code: Select all
\rowcolor{yellow}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
coloured row in a table
You forgot to attach the file. The colortbl package is best included by using an option for the xcolor package.kostoglotov wrote:[…] The tex file of that section is attached. […]
Code: Select all
\usepackage[table]{xcolor}
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Re: coloured row in a table
Thank you very much.
I have solved it yesterday immediately I'd posted the question - thank to the other forum discussions. But could delete it or edit it since the site seemed to have some problem...
Anyway, I have used this
\rowcolor{yellow}
but wanted to ask how can I define colour I want in RGB?
Cheers.
ak
I have solved it yesterday immediately I'd posted the question - thank to the other forum discussions. But could delete it or edit it since the site seemed to have some problem...
Anyway, I have used this
\rowcolor{yellow}
but wanted to ask how can I define colour I want in RGB?
Cheers.
ak
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Re: coloured row in a table
Hi,
I've got it now.
It's as follow for those who were wondering as me how to do that...
\rowcolor[rgb]{1,0,0}
Cheers.
I've got it now.
It's as follow for those who were wondering as me how to do that...
\rowcolor[rgb]{1,0,0}
Cheers.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
coloured row in a table
To be read in the xcolor manual.kostoglotov wrote:[…] It's as follow for those who were wondering as me how to do that […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10