GeneralLinking back to table of contents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmorgan
Posts: 5
Joined: Tue Nov 10, 2009 8:18 pm

Linking back to table of contents

Post by dmorgan »

This should be easy, I think, but I can't find anything on the web, or in the LaTeX companion and TeXbook doesn't mention the table of contents at all.

I am using the hyperref package. I would like to have a link back to the table of contents from a navigation bar in my page footers. Sounds simple, doesn't it. But how do I do it?

TIA,

Dave

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Linking back to table of contents

Post by Stefan Kottwitz »

Hi Dave,

you could use \hypertarget and \hyperlink:

Code: Select all

\cleardoublepage
\phantomsection
\hypertarget{contents}{}
\tableofcontents
...
\hyperlink{contents}{Contents}
Stefan
LaTeX.org admin
dmorgan
Posts: 5
Joined: Tue Nov 10, 2009 8:18 pm

Re: Linking back to table of contents

Post by dmorgan »

Perfect. Many thanks.
Post Reply