Consider the following MWE:
Code: Select all
\documentclass[a4paper,12pt,danish]{article}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage[nottoc]{tocbibind}
\usepackage{hyperref}
\makeatletter
\@addtoreset{section}{part}
\makeatother
\titlecontents{section}[2em]{}{\contentslabel{2em}}{\hspace*{-2em}}{\titlerule*[1pc]{.}\contentspage}
\renewcommand{\thepart}{\arabic{part}}
\renewcommand{\thesection}{\thepart.\arabic{section}}
\begin{document}
\begin{center}
\Huge Frontpage
\end{center}
\newpage
\pagenumbering{roman}
\titleformat*{\section}{\centering\bf\Huge}
\tableofcontents
\titleformat*{\section}{\bfseries\Large}
\newpage
\section*{Introduction}
\label{intro}
\addcontentsline{toc}{section}{Introduction}
\pagenumbering{arabic}
\part{Horse}
\label{horse}
\vspace{60pt}
\section{Goat}
\label{goat}
\newpage
\addtocontents{toc}{\protect\addvspace{24pt}}
\begin{thebibliography}{}
\label{bib}
\bibitem{illeris2005} Illeris, Knud:
\newblock {\slshape Læring og lærerroller};
{\itshape Unge Pædagoger}~{\bfseries 8} (2005), 3--18.
\end{thebibliography}
\end{document}
In general: Every (interactive) ToC entry before the first part gets my to the frontpage and the (interactive) bibliography entry in the ToC gets me to the last section title before the bib.
How to I get the correct "linking" in the ToC?
Thank you in advance!