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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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