I am using the abstract
environment to write the abstract of a report (I am using the report
class)
\begin{abstract}
\addcontentsline{toc}{chapter}{Abstract}
lorem ...
\end{abstract}
I want to add the abstract to my table of contents. Adding the line \addcontentsline{toc}{chapter}{Abstract}
seems to work fine (it adds the abstract in the toc) but when I click on it (I am using the package hyperref
) in the TOC I am redirected to the first page of the report instead of the abstract page. Maybe I should precise that I am using the option notitlepage
of the class report
(I have a custom title page done with a \begin{titlepage} ... \end{titlepage}
instruction).
Best Answer
As @GuM suggested it in a comment, the solution is to use
\phantomsection
:This other question was particularly useful.