{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

113
votes
10answers
8k 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, ...
249
votes
7answers
60k 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?
33
votes
2answers
13k 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 ...
27
votes
5answers
3k 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 ...
35
votes
3answers
2k 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 ...
64
votes
6answers
39k 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 ...
37
votes
2answers
11k 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 ...
24
votes
1answer
3k 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)
17
votes
4answers
3k views

Getting those %#!^& signs in the footnote!

This is basically an expanded version of part of Control command arguments . The original questioner there wants to redefine \href so that all the links end up in foonotes (rather than in the main ...
29
votes
3answers
2k 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 ...
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 ...
21
votes
1answer
774 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} ...
23
votes
3answers
2k 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
6answers
12k 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 ...
46
votes
3answers
15k 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?
30
votes
1answer
10k 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.
9
votes
1answer
2k views

hyperlink name with biblatex authoryear (biblatex 1.4b)

I'm new here so I'm not sure if this is the right way to express my question: I'm using the excellent biblatex package with the author-year style and want the links in my citations to include the ...
9
votes
1answer
1k views

Incorrect target of \label link produced by hyperref

In the following code, the command \label{my} appears on page 4, as well \pageref{my} says "4", but the hyperlink points to the page one. Why is that? \documentclass{book} \usepackage{hyperref} ...
32
votes
3answers
2k 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 ...
22
votes
1answer
14k 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 ...
6
votes
1answer
2k views

hyperref: how to format text in a forms text-field

I would like to pre-format the text in a form text-field, e.g. make it bold, italic or use a specific font. The following code generates a simple text-field: \documentclass{scrreprt} ...
14
votes
1answer
2k views

Defining custom sectioning commands

In a document of mine (scrbook class) I have to describe several different scenarios as part of a subsection. I originally used \subsubsection for each which are not numbered with the default setting ...
37
votes
1answer
2k 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 ...
23
votes
4answers
10k 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 ...
14
votes
2answers
709 views

Linking the section text to the TOC

I'd like the section headings in running text to link to their "line" in the Table of Contents so as to get "two-way" navigation, eg: a user looks in the Table of Contents for a section title, jumps ...
11
votes
3answers
3k views

Option to break urls with carriage-return symbol?

There are several ways to get long, uncooperative URLs to line-break in LaTeX. If you're using pdfLaTeX, then the hyperref package can break them across lines for you, roughly after any /. If you ...
7
votes
2answers
3k views

How do I get rid of particular pdftex warning message?

Here is a minimal example that showcases my problem: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma} ...
6
votes
2answers
246 views

Hyperref within hyperref

I'm using the hyperref package in LaTeX. In the compiled PDF, in the table of contents (TOC), I correctly get all the links to the corresponding chapters and sections. There is only one chapter which ...
19
votes
2answers
6k 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
1answer
12k 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: ...
20
votes
3answers
3k 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) ...
19
votes
5answers
2k views

Constructing a dynamic PDF

I wish to create a dynamic PDF file to write an article. This article will contain some theorems. The user will click a theorem and this will drill down to reveal the proof of that theorem. I think ...
24
votes
2answers
509 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 ...
15
votes
1answer
2k views

natbib and hyperref for (Author, Year) style produces two links

I am using the bioinfo style with natbib and hyperref, using the (Author, Year) style citations. pdflatex produces two link boxes for each citation: one for the Author and one of the Year. I would ...
13
votes
3answers
2k views

Using non ASCII characters in author names and titles within hyperref pdfinfo

I am trying to generate a PDF file (using pdflatex) with hyperref references; both the title and author should be visible as pdf properties, and both contain accents or non us-ASCII. The rest of the ...
7
votes
1answer
337 views

Adding another answer hyperlinked to the question itself

I asked this question here Best way to part answers from solutions? And obtained a very good answer. Though I now have a new problem. I want to type the question, then have one answer linked to the ...
16
votes
1answer
970 views

What does the hyperref option hypertexnames do?

The Manual of hyperref states that hypertexnames: use guessable names for links. What does this mean? What are the consequences of using this option?
11
votes
2answers
7k views

Link formatting: colors, underlines in moderncv

Following the excellent advice in this site, I have started using moderncv for writing the new version of my CV. Unfortunately, after converting to PDF, my http links work (clicking on them leads to ...
11
votes
2answers
2k views

How to create a link in a pdf document to open a file using a specified application installed on the machine?

Assume I have a file on my machine at file:///c:\figure.bmp. From my pdf document, that is created by LaTeX using hyperref.sty, how can I open figure.bmp using mspaint.exe (microsoft built-in image ...
9
votes
3answers
3k views

How to link to specified page of an outer pdf document?

Recently, I made a beamer presentation and I want to link to a pdf I have made before, but I can only link to the first page of pdf document using the command: \href{doc/mydoc.pdf}{thedoc} and I ...
7
votes
2answers
2k views

How to get correct autoref for theorems

I have some own theorem environments. And my theorems are numbered like the chapter. Now I would like to use autoref with that. But it does not work like it is described here ...
6
votes
1answer
3k views

A button that runs an external program from a Beamer PDF presentation

I want to add a "run demo" button to a Beamer presentation (PDF file) that will launch an external Java application. Can this be done somehow - Embed an "exec" command inside a PDF using ...
8
votes
5answers
2k views

Greek pdf bookmarks

I am puzzled with sections titled with Greek characters. They do appear in the pdf's Content list, though not correctly. For example, in my thesis--written in English with LyX, based on the ...
8
votes
1answer
2k views

Multiply defined labels using hyperref

I'm using the stackrel command to indicate important steps in the transformation of formulas. E.g. I would write: A\stackrel{(!)}{=}B so that I can later explain in text why exactly A equals B. I've ...
5
votes
1answer
1k views

pdfpages and linktodoc

I'm trying to link to a specific page in an external document. This has been discussed previously under the topic, How to link to specified page of an outer pdf document?, and the answer suggests ...
10
votes
1answer
2k views

Why are all of my footnotes hyperlinked to the titlepage?

Problem I have various footnotes, which are hyperlinked from the text to the bottom of their respective pages. When I click on the hyperlinks (in the main text), they always take me to the first page ...
63
votes
2answers
4k 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, ...
31
votes
1answer
15k 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 ...
11
votes
1answer
1k views

Breaking links and escaping characters in bibliographies with backlinks and ocgcolorlinks set

I have the following situation: I have to use the ocgcolorlinks option in hyperref, so that links are not broken. So I had the idea to set each char as a link with \href. After putting some code ...
12
votes
2answers
24k views

How to link an equation in LaTeX

I am wondering how I can link an equation in LaTeX, I mean when I click on the link then I'll be directed to that specific equation.