12

Now the color of Table of Contents is red, i want it be black color. I use hyperref

\usepackage[colorlinks=true]{hyperref}

if I change it to

\usepackage{hyperref}

or

\usepackage[colorlinks=false]{hyperref}

Then, the red color is changed to black, but with a red color rectangle. How to make it as black color? just like as a normal book does

  • try hidelinks=true – greyshade Aug 15 '14 at 14:38
13

The default colour for (internal) links are red, provided by the key linkcolor. To keep links active but with a black colour, use

\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\hypersetup{%
  colorlinks = true,
  linkcolor  = black
}

For more on link colours, see section 3.5 Extension options of the hyperref HTML documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.