Graphics, Figures & TablesColored horizontal Lines in Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
luffy
Posts: 2
Joined: Thu Aug 11, 2011 9:22 am

Colored horizontal Lines in Table

Post by luffy »

Hi,

I am a beginner with LaTeX and have a doubt. I am writing code for creating a table. The question is I want to have the horizontal lines of the table in blue color. The lines that separate the rows (\hline). How can I make it in some color?

I tried \color{blue}{\hline} but it's not working. Any help is appreciated.

Thanks,
luffy

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Colored horizontal Lines in Table

Post by Stefan Kottwitz »

Hi Luffy,

welcome to the board!

You could use the colortbl package:

Code: Select all

\usepackage{colortbl}
\arrayrulecolor{blue}
Stefan
LaTeX.org admin
luffy
Posts: 2
Joined: Thu Aug 11, 2011 9:22 am

Re: Colored horizontal Lines in Table

Post by luffy »

Thank you Stefan.I hope to make use of this forum the most and if possible contribute something from my own side. :)
Post Reply