Graphics, Figures & Tables ⇒ coloured row in a table
-
- Posts: 59
- 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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- 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: 59
- 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: 59
- 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