[Tex/LaTex] How to make a TOC link cover text and page number

hyperreflinkstable of contents

The hyperref package allows you to specify that TOC links in the pdf cover the text (default) or the page number (linktocpage=true), but not both. That is, you can have this:

 [My Title]. . . . . . . . . . . 15

Or this:

  My Title . . . . . . . . . . .[15]

But not this:

 [My Title . . . . . . . . . . . 15]

…where the brackets encompass the portion of the line that is a clickable link.

My question: how do you specify that you make the whole line a clickable link? Is there a package that allows you to specify this?

Best Answer

linktoc=all, as described in the hyperref README.

Related Question