{hyperref} is a package capable of producing hypertext links in documents. If your question is about cross-referencing in general, choose {cross-referencing}. If it's specifically about PDF features, consider to choose {pdf}.

learn more… | top users | synonyms

402
votes
7answers
125k views

Remove ugly borders around clickable cross-references and hyperlinks

I know that I can use hyperref to make cross-references and hyperlinks clickable. That makes the clickable areas outlined in fluorescent green, however. How can I make the green boxes go away?
150
votes
11answers
14k views

Which packages should be loaded after hyperref instead of before?

The hyperref documentation says: "Make sure it comes last of your loaded packages". The reason is that it redefines many LaTeX commands. It's a rule of thumb that helps to avoid errors. However, ...
95
votes
7answers
68k views

How to get DOI links in bibliography

I would like to add to all my bibliography items a DOI (Digital Object Identifier) link or a link to a download location. How can I do this with the natbib / BibTeX / hyperref combination? Currently ...
77
votes
4answers
55k views

How can I make a clickable Table of Contents? [duplicate]

Possible Duplicate: How to make clickable links and cross-references in pdfs produced by LaTeX? I need links for the Table of Contents, so that I can navigate fast to different sections. I ...
73
votes
2answers
6k views

Is there a way to have coloured hyperref hyperlinks in the PDF, but have them print “as if” they were black?

I like having my hyperref hyperlinks a different colour, so it's obvious that they are links. But when I print a copy of the PDF, I don't want the links to be coloured, because you can't click them, ...
65
votes
3answers
27k views

When do I need to invoke \phantomsection?

Inspired by question When do I need invoke \clearpage manually?: When do I need to invoke \phantomsection? In what condition is invoking \phantomsection necessary?
64
votes
1answer
29k views

Hyperref - Token not allowed [duplicate]

Possible Duplicate: Hyperref warning - Token not allowed in a PDF string The following code: \subsection{The classes $\mathcal{L}(\gamma)$} generates the errors: Package hyperref ...
64
votes
2answers
22k views

Hyperref warning - Token not allowed in a PDF string

When compiling a beamer presentation and using the following \author command \author{Name \\ \texttt{my.email@domain.com}} I get the following hyperref warning in my logfile Package hyperref ...
54
votes
1answer
26k views

pdfTeX warning (ext4): destination with the same identifier (nam e{page.1}) has been already used, duplicate ignored

I get the following warning pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been already used, duplicate ignored when compiling the following document: ...
53
votes
1answer
23k views

How to make clickable links and cross-references in pdfs produced by LaTeX?

How can I make things link url references, my index, table of contents, and cross references clickable links in documents produced by LaTeX? I generally use pdflatex to produce my documents.
49
votes
1answer
36k views

options for appearance of links in hyperref

If I use \usepackage[colorlinks]{hyperref} I get colored links for \cite (not good for printing or even viewing) but table of content looks fine. If I use ...
49
votes
2answers
28k views

How can I have colored and underlined links with hyperref?

I would like the internal hyperlinks generated by hyperref to be colored and underlined. Reading some of the package documentation, I know that these \hypersetup keys exist: colorlinks: when ...
44
votes
6answers
21k views

Multiple references to the same footnote with hyperref support - is there a better solution?

According to the Latex wikibook the workaround for having multiple references to the same footnote with hyperref support is this: \footnote{This is the ...
43
votes
3answers
6k views

Best practice for hyperref link colours?

I'm using the hyperref package with the option colorlinks=true. However, I'm not happy with the default link colours: for instance, citation links appear in a flamboyantly bright green that hurts my ...
42
votes
1answer
3k views

Footnote backreference with hyperref

This question led to a new package: footnotebackref I'm using hyperref to have footnote marks link to the footnote proper and I'd like to have some sort of "backreferences" from the footnote ...
38
votes
3answers
4k views

biblatex: make title hyperlink to DOIs, URL or ISBN

This is a follow up question to biblatex: Make title hyperlink to doi url (if available). My reference database contains some DOI codes, but mainly normal URLs and some ISBN/ISSN codes. What I would ...
37
votes
2answers
23k views

Conditionally hidden slides in beamer

When creating a presentation, I sometimes create extra slides that contain additional information, a more thorough explanation, or an extra plot pertaining to certain parts of my talk. These extra ...
36
votes
3answers
3k views

Is hyperref really the best way to add metadata to a TeX file?

So I know one of hyperref's features is that it can add metadata to you PDFs. This is a nice feature and if you're putting stuff online, it's good to include metadata. But is the hyperref package ...
35
votes
3answers
4k views

How to preserve hyperlinks in included PDF?

I have generated PDFs with figures that have hyperlinks (hyperref to websites, \href) in them. When I compile these figures standalone the hyperlinks work. But when I try to include these PDFs (as ...
33
votes
1answer
2k views

PDF/A with hyperref on TeX Live 2013

I am trying to make PDF/A from LaTeX (not from LuaTeX etc.) with TeX Live 2013 on Fedora Linux. This works: \documentclass{article} \begin{document} What cat says? \label{meow} See question on ...
32
votes
5answers
6k views

Does hyperref work between two files?

Can I create a link from one file into another one. So that when the resulting pdf files are in the same directory the link takes me from one to the other? Does another package do that? Added on ...
32
votes
2answers
18k views

How to style text in hyperref \url?

I want to set color, font and similar style attributes for the text in a \url from the hyperref package. How do I go about doing it? All I have found are comments saying that I probably don't want to ...
31
votes
3answers
10k views

Contents in PDF bookmarks

I am using KOMA-Script (scrreprt) and hyperref. The PDF bookmarks are generated nicely from the table of contents, but I would like an extra Contents bookmark to point to the table of contents itself ...
31
votes
4answers
3k views

Pop-up references in PDF output

I once saw a maths journal which offered PDFs of published papers, where the bibliographic references were formatted as PDF annotations: if you moused over a reference in the text, the bibliography ...
30
votes
3answers
18k views

How to use different colors for different \href commands?

I have two different \href{}{} links and I want each to be a different color. In the example below they will both be blue, how can I make each link have a different color? \documentclass{article} ...
30
votes
2answers
24k views

URL with tilde character?

I'm trying to make a URL with a tilde character (~) in it: \usepackage{url} ... \url{http://lyle.smu.edu/~tspell/jaws} It looks right in the resulting PDF, but when clicking on it the browser goes ...
30
votes
1answer
3k views

Impact of hyperref, when varioref and cleveref are used

I think I may have found a bug in either hyperref, cleverefoder varioref but can't determine the details any further. If do not load hyperref in the following example, the result is fine. ...
29
votes
2answers
5k views

Make hyperref take pdfinfo from \title and \author

I once read about an option for hyperref that automatically takes the info provided via the standard \author and \title, and puts it into the pdfinfo. Now I want to implement it in my template and ...
29
votes
3answers
4k views

Automatic “Zoom in” hypertext boxes in PDF

I remember long time ago, seeing PDF documents (such as online PDF versions of newspapers) that had hypertext boxes around paragraphs, such that when you clicked inside those boxes the surrounded ...
29
votes
1answer
5k views

biblatex: Make title hyperlink to doi url (if available)

I'm using biblatex with the standard bibliography style. How or what should I modify so that the title is turned into a link pointing to a suitable doi url? (of course only if the doi is available)
28
votes
1answer
19k views

How to change the color of \href links… for real

I would like web links generated by the \href command to be colored in my Beamer presentation. Passing the colorlinks option to hyperref leads to navigation links within the PDF receiving (default, ...
27
votes
5answers
13k views

No section numbers, but still have PDF bookmarks with hyperref

I have a document that has many sections. I don't want section numbers to show up in the document, but I do want the sections to show up automagically as bookmarks in the PDF using the hyperref ...
27
votes
4answers
11k views

How to disable links completely using hyperref package?

A have a LaTeX paper I want to submit to the EDAS system. EDAS doesn't want papers to have links and suggests to 'remove the hyperref package from your file'. However, if I do that, my compilation ...
27
votes
3answers
5k views

hyperlink name with biblatex authoryear

I am using biblatex with the authoryear styles. So far I've been able to find everything I need easily in the excellent documentation, but I'm stuck on one thing. With my current settings (below) ...
26
votes
2answers
4k views

Wrong (hyper-)references after resetting chapter counter

The following MWE produces a PDF whose TOC has two entries: “Foo” and “Bar” with correct page numbers. So far, so good. However, upon clicking on the link to “Bar”, I am taken to the page for “Foo” ...
26
votes
3answers
24k views

How to put a line-break in section heading?

I have some section headings occupying two lines and I'm not satisfied with the way XeLaTeX breaks the heading. If I manually add \\ the output looks fine, but I get the following warning: [hyperref] ...
26
votes
2answers
2k views

Mouseover events in beamer: hovering on \eqref and a comment containing the original equation popping up

This idea came into my mind while I was listening to a speaker presenting his results in a seminar, he used lots of equation references in his later slides, however I can't remember which equation he ...
26
votes
1answer
1k views

href to an image label - how to jump to the image instead of the caption below the image?

I'm using the following command to embed images in my LaTeX document (which is then rendered as PDF) \newcommand{\img}[4]{ \begin{figure}[!hbt] \centering \vspace{1ex} ...
26
votes
2answers
4k views

Multiple references with \autoref

I am currently using the \autoref command from the hyperref package to refer to my theorems etc. However, I want to be able to (easily) refer to two or more theorems/lemmas/..., e.g. by calling ...
26
votes
1answer
1k views

Relative chapter references

(A follow-up of sorts on Variable chapter references, as per @werner 's suggestion) This is somewhere in between a request for comments and an actual question (as well as a summary of my experiences ...
25
votes
2answers
17k views

\ref should use enumerate label name

I have done this: \begin{enumerate} \renewcommand{\labelenumi}{\textbf{S.\theenumi}} \item a \item \label{l} b \item c. goto \ref{l} \end{enumerate} The \ref just uses the enumerate number. But I ...
25
votes
3answers
8k views

mysterious error: \pdfendlink ended up in different nesting level than \pdfstartlink [duplicate]

I ran into the "mysterious" \pdfendlink ended up in different nesting level than \pdfstartlink error. According to http://www.tug.org/errors, "this happens when hyperref is used under pdftex and a ...
24
votes
4answers
7k views

Going “back” when using hyperref

I'm including \usepackage{hyperref} so that each instance of \ref (as well as each page number in the index and the table of contents) automatically links to that page. When I'm viewing the document ...
24
votes
4answers
2k views

Best practices for publishing computer code with LaTeX?

I work a lot with MATLAB, and I want to enable the reader of my paper to easily reproduce my computations. I also want the pdf document to be self-contained, i.e., no hyperlinks to a webpage on which ...
24
votes
2answers
836 views

Automatically link bibliography entry to Google Scholar when no url field is present

Something I thought would be absolutely amazing but is way beyond my BibLaTeX skills: whenever there is no url field, generate a link that searches for the title, authors and year on Google Scholar. ...
24
votes
2answers
762 views

Breadcrumb hyperlink header

I wish to put breadcrumb navigation with hyperlinks into the header of each page. Clicking on each part, chapter, section will take you to the beginning of that part/chapter/section. I'm already ...
23
votes
3answers
19k views

How to break long url in an item

I have an enumerate. In an item I have a long url. I use the package breakurl and it works fine outside the enumerate but not in the item. \usepackage[margin=3cm]{geometry} \usepackage{hyperref} ...
23
votes
2answers
11k views

Warning with footnotes: “name{Hfootnote.xx} has been referenced but does not exist”

First, some general details about my document: I'm using the scrbook class and the hyperref package. The document is split up into different source files (though this fact should not matter in this ...
23
votes
2answers
7k views

Hyperref: Changing the linkcolor locally in the TOC

I found that the link-color for TOC text is identical to the link-color for Figures and Tables. When I change the color to black in the TOC also the color for Figures/Tables citation etc. is changed. ...
23
votes
2answers
2k views

hyperref, natbib and PDF/A-compliance

My e-Thesis submission is required to be in PDF/A-1b format, and I'm having difficulty producing output that meets this standard using LaTeX. I have successfully typeset a chapter using dvips to ...