Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX - Add clickable links to a section/subsection with a PDF document

I am making PDF with LaTeX. I have a few sections and subsections. I want to put a link towards the top of the document so that in the PDF someone can click on it and it'll go to that section/subsection. I know it's possible to have this with a linkable table of contents, but I don't want to make a table of contents, I need more control.

like image 302
Amandasaurus Avatar asked Jul 14 '10 09:07

Amandasaurus


People also ask

How do I add a link to a subsection in LaTeX?

Links to a web address or email can added to a LaTeX file using the \url command to display the actual link or \href to use a hidden link and show a word/sentence instead. There are two commands in the example that generate a link in the final document: \href{http://www.overleaf.com}{Something Linky}

How do I add a link to a PDF in LaTeX?

You can add a hyperlink into your LaTeX article using the command \usepackage{hyperref} and then including the command \href{YOUR URL}{TEXT FOR YOUR HYPERLINK}.

How do you make a clickable content in LaTeX?

In order to add a link with a description (i.e. making a word clickable), you should use the href command like so: %... This is my link: \href{http://www.latex-tutorial.com}{LaTeX-Tutorial}.

What is hyper linking?

In a website, a hyperlink (or link) is an item like a word or button that points to another location. When you click on a link, the link will take you to the target of the link, which may be a webpage, document or other online content. Websites use hyperlinks as a way to navigate online content.


1 Answers

Include \usepackage{hyperref} in the preamble of your document. Assign proper labels to your sections and reference these labels using \ref{}. These references will then be turned into clickable links when creating PDFs with pdflatex.

like image 93
lunaryorn Avatar answered Oct 06 '22 10:10

lunaryorn