Graphics, Figures & Tables ⇒ coloured row in a table
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
coloured row in a table
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
coloured row in a table
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
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
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
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 […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10