Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

There are many questions and answers surrounding how to make the Table of Contents content clickable. I am wondering how to make a reference to the Table of Contents and create a link elsewhere in the document to click on and go back to the table of contents.

I have tried giving the Table of Contents its own label via \tableofcontents\label{toc} and then using a reference link \ref{toc} but this produces the error: ./project.tex:133: Package hyperref Warning: Suppressing empty link on input line 133.

share|improve this question

marked as duplicate by karlkoeller, jfbu, Jubobs, Martin Schröder, Heiko Oberdiek Mar 7 at 20:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Possibly a duplicate: Reference to the Table of Contents page –  jfbu Mar 7 at 19:31

2 Answers 2

This can be done with hypertarget and hyperlink from the hyperref package. See the example below:

\documentclass{article}
\usepackage{hyperref}

\begin{document}
Title Page\newpage

% Add a link target to the TOC itself
\addtocontents{toc}{\protect\hypertarget{toc}{}}

% Print the TOC
\tableofcontents
\newpage

% Sections with a hyperlink to TOC
\section[One]{One. Go to \hyperlink{toc}{TOC}}
Text that points to \hyperlink{toc}{Table of Contents}.

\end{document}
share|improve this answer

Something like this:

\documentclass{scrbook}


\usepackage{hyperref}

\begin{document}

\phantomsection 
\hypertarget{MyToc}{}  % Make an anchor to the toc
\tableofcontents

\chapter{Dummy}


\chapter{Yet another Dummy}

Jump to my incredible \hyperlink{MyToc}{Table of contents}

\end{document}

Change the \documentclass{scrbook} at will.

enter image description here

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.