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:
(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
\documentclass[12pt]{book}
\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage{lipsum}
\usepackage[Lenny]{fncychap}
\usepackage{pdfpages}
\setlength{\oddsidemargin}{.5cm} \setlength{\evensidemargin}{.5cm}
\setlength{\textwidth}{15cm} \setlength{\textheight}{21.0cm}
\setlength{\topmargin}{0in}
\renewcommand\contentsname{Table des mati\`eres}
\parindent 0ex
%\usepackage{hyperref}
\usepackage[colorlinks=true,
linkcolor=red,
urlcolor=blue,
pdftitle={Dossier de Candidature},
pdfauthor={Dimitrios S. Anagnostou}]{hyperref}
\usepackage[affil-it]{authblk}
\parindent0pt \parskip10pt
\begin{document}
\title{DOSSIER DE CANDIDATURE}
\author{Dimitrios Papas\thanks{vbkvbkvbdkvbd}}
\affil{
Université\ldots}
\date{\begin{center}
Docteur en Mécanique
\end{center}}
\maketitle \thispagestyle{empty}
\frontmatter
\tableofcontents
\chapter*{Avant propos}
\addcontentsline{toc}{chapter}{Avant propos}
\lipsum
\mainmatter
\chapter{First}
\section{First section}
\lipsum
\chapter{Second}
\section{First section}
\lipsum
\end{document}
