Generalhightlight cross-ref and urls

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
carol
Posts: 105
Joined: Wed Dec 24, 2008 7:25 pm

hightlight cross-ref and urls

Post by carol »

Hi,
I use hyperref package to hyperlink the cross-references and urls. I would like to highlight the cross references and url, either in color or not, without having a box around the text like the table of contents of the manual of hyperref package. So I tried in two ways (see below) but doesn't work. What would you suggest?

thanks

Code: Select all

\usepackage[colorlinks=false, 
           pdfhighlight =/O]{hyperref}

Code: Select all

\usepackage{hyperref}
\hypersetup{pdfhighlight =/O}

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
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

hightlight cross-ref and urls

Post by frabjous »

Actually you want colorlinks=true -- that will make the links be a certain color instead of having a box around them.

Code: Select all

\usepackage[colorlinks=true,%
linkcolor=blue,% or whatever
urlcolor=red,% or whatever
]{hyperref}
You can set the color to black if you don't want the links to be obvious, but they'll still work.
Post Reply