I know that there is the following post

Reference to the Table of Contents page

but I could not find what I want.

What I want is to add in (almost) every page of my document (class book) a reference to the TOC page as below:

enter image description here

(I don't care for the "jump to Index" link)

All the pages before the TOC would not contain a link. The same holds true for the first page of each chapter and the first page of the table of contents.

As a minimal working code





\setlength{\oddsidemargin}{.5cm} \setlength{\evensidemargin}{.5cm}
\setlength{\textwidth}{15cm} \setlength{\textheight}{21.0cm}
\renewcommand\contentsname{Table des mati\`eres}

\parindent 0ex


    pdftitle={Dossier de Candidature},
    pdfauthor={Dimitrios S. Anagnostou}]{hyperref}


\parindent0pt  \parskip10pt


\author{Dimitrios Papas\thanks{vbkvbkvbdkvbd}}


Docteur en Mécanique

\maketitle \thispagestyle{empty}



\chapter*{Avant propos}
\addcontentsline{toc}{chapter}{Avant propos} 



\section{First section}

\section{First section}

  • Apparently you have forgotten to supply the magnifying glass together with your screen shot? And the starter code as well ;-)
    – user31729
    Mar 6, 2017 at 18:37
  • You are right. I apologize. I will put a minimal example and a bigger picture.
    – Dimitris
    Mar 6, 2017 at 18:37

1 Answer 1


The key is to place a \label at the start of the ToC. To achieve this, we force a new page (\clearpage) and place a hyperref marker \phantomsection. Now we can place a regular \label which we use as a hyperlink in the footer:



  \fancyhf{}% Clear header/footer
  \renewcommand{\headrulewidth}{0pt}% Remove header rule
  \renewcommand{\footrulewidth}{0pt}% Remove footer rule
  \fancyfoot[L]{\hyperref[ToC-first-page]{Jump to Contents}}
  \phantomsection% Place hyperlink marker
  \label{ToC-first-page}% Set \label for hyperlink




\chapter{First chapter}
\chapter{Second chapter}
\chapter{Third chapter}
\chapter{Final chapter}


The process is "automated" by replacing the \tableofcontents and \mainmatter macros to insert the appropriate links and settings (leaving the regular document code clean).

The footer can be modified to suit your needs.

  • Thank you very much. But when I run the minimal example with your workaround I get error messages.
    – Dimitris
    Mar 6, 2017 at 19:34
  • @dimitris: Please see this paste which uses your minimal example with the additions I suggest.
    – Werner
    Mar 6, 2017 at 19:42
  • @Werner It seems not to be absolutely necessary the inclusion of a forced new page... As I'm still a newbie I would like to know if you liked that way for some reason. Thank you
    – Cris
    Sep 27, 2019 at 22:49
  • 1
    @Crparedes: The reason for that is a round-about way of latching on to \tableofcontents. Under book, it necessarily sets a \chapter* which forces a new page anyway.
    – Werner
    Sep 27, 2019 at 23:32

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.