Generalhyperref colors

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
zillions
Posts: 11
Joined: Fri Sep 04, 2009 10:45 pm

hyperref colors

Post by zillions »

Could someone help explain how to use different colors in this package? (I would like to have gray).

I wasn't able to use RGB colors as suggested here:
http://en.wikibooks.org/wiki/LaTeX/Hype ... tomization

There was an error "unrecognized colors"

I also tried using the color names at the link below, but had the same problem.
http://en.wikibooks.org/wiki/LaTeX/Colors


thanks,
Bobby

Code: Select all

\usepackage[bookmarksnumbered=true]{hyperref} 
\hypersetup{
    colorlinks = true,
    linkcolor = blue,
    anchorcolor = blue,
    citecolor = blue,
    filecolor = blue,
    urlcolor = blue
    }

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

hyperref colors

Post by localghost »

At least the second link mentions that you need an additional package like color. But it's better to use the xcolor package because it's more powerful.

Code: Select all

\usepackage[svgnames]{xcolor}
For the list of predefined colors refer to the package manual.


Best regards
Thorsten
zillions
Posts: 11
Joined: Fri Sep 04, 2009 10:45 pm

Re: hyperref colors

Post by zillions »

thanks, it was surprisingly easy despite the extensive manual. looks like a great package
Post Reply