4

When I set \hypersetup{linkcolor=blue} to make the references of figures/tables blue, the TOC was also changed to blue. How can I change the link color to blue except change the default color (black) of the TOC?

5

1 Answer 1

6

There are many ways to achieve this, one way which

  • preserves the capability to click the links
  • allows coloured links before the table of contents

is to use { \hypersetup{hidelinks} \tableofcontents }. Pay attention to the curly brackets around the code, this puts the \hypersetup together with the table of contents inside a group, so it will not effect the remaining document.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .