2

I want to make the page number listed in table of contents also clickable.

Does anybody know how to do this?

Clickable Table of Contents ref

At the moment I use the following code to hyperlink my table of contents.

\usepackage{hyperref}

\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}

1 Answer 1

4

The code that I use for a clickable toc is:

\usepackage[hidelinks]{hyperref}    %clickable ToC
\hypersetup{allcolors=black,linktocpage,linktoc=all}

Wikibooks has a short summary of possibilities of the hyperref package. Especially:

linktoc | =none,section,page,all | defines which part of an entry in the table of contents is made into a link

Complete documentation can be found here.

3
  • 3
    The only thing of importance here seems to be the option linktocpage, correct?
    – Werner
    Feb 22, 2016 at 8:39
  • linktoc did the trick thx Feb 22, 2016 at 8:40
  • 1
    @Werner linktocpage activates links from page numbers but inihibits them from section names. Thus linktoc=all is the needed thing. The linktocpage is then overwritten by it anyhow.
    – user4686
    Feb 22, 2016 at 18:39

You must log in to answer this question.

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