{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

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 ...
17
votes
1answer
687 views

How to configure Latex to open the last page in PDF reader?

I edit big documents, so it is useful for me to open the last page after compilation. Normally, the first page is opened, but by using hyperref, I can configure it to open any page at start. ...
17
votes
1answer
1k views

How to prevent \url from removing the spaces in a path?

The following code \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{"a b c.tex"} one two \end{filecontents*} \usepackage{listings} \usepackage{hyperref} \begin{document} ...
17
votes
2answers
951 views

Hyperref Link Spans a Pagebreak, Looks Ugly

I'm using hyperref for links in pdflatex and I have the following problem: when a bibliography citation spans across a page-break (which usually occurs with long author names), then an additional ...
16
votes
3answers
2k views

How to insert an image that also acts as a link

Can an image be included in TeX so that the resulting PDF is clickable leading to a reference?
16
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 ...
16
votes
2answers
13k 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] ...
16
votes
3answers
2k 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 ...
16
votes
2answers
2k views

Avoid hyperlinked TOC if hyperref is used

I'm using the hyperref package because I have a link in my document, but do not want to have the TOC as links. How can this be done?
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?
16
votes
1answer
2k views

Underlined links with hyperref possible?

How can I have underlined links with hyperref? That means how to configure hyperref not to change the color of the printout but use underlined active links which are completely transparent in print. ...
16
votes
4answers
7k views

MacOS X: insert hyperlink to local file (complete path) in LaTeX? (only working with relative path)

I want to add hyperlinks to external pdfs (which are saved in the local file system) and to specific pages of these pdfs to a LaTeX document on MacOS X and opening them with Skim.app (default). My ...
16
votes
1answer
422 views

Which hyperref variable can I set to make a pdf open with the “Comment” tool displayed in the right panel of the window?

We are using Adobe Acrobat X when viewing our pdf files produced by pdflatex and the hyperref package. To make the commenting process more intuitive for users not familiar with Adobe Acrobat X, I ...
16
votes
1answer
661 views

Hyperlinks to a bibliography are one line off

I have long despaired of resolving the following glitch: if I am using hyperref with amsrefs, then all \cite links to the bibliography point to the line right below where they are supposed to. Here ...
15
votes
2answers
5k 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} ...
15
votes
2answers
5k views

How do I specify color in RGB using \hypersetup in hyperref?

How do I specify color in RGB using \hypersetup in hyperref? I know that this is the right way to do it with color names: \hypersetup{colorlinks,breaklinks, urlcolor=Maroon, ...
15
votes
3answers
718 views

Adjust box around hyperref footnote links

Is it possible to adjust the size of the box around the footnote links produced by hyperref? Specifically, I would like to move the base of the box closer to the base of the object inside. ...
15
votes
2answers
2k views

Insert foldable A3 pages in an A4 document with active references

I am at the end of a big LaTeX document (my thesis) and I would like to insert A3 tables and figures in the Annexes (Supporting informations) section. These A3 pages would be foldable and ideally I ...
15
votes
1answer
3k views

Linking a text to a page (by page number)

I need to link a text to a page (by page number). I do not want to use labels, but simply to specify the text and the page number. Can I do that with hyperref?
15
votes
1answer
702 views

Is there a poisonous interaction between memoir, hyperref, and hyperxmp?

In another, now rather confused, question, I'm struggling to get copyright information into a PDF produced by memoir. The investigations so far have led to this problematical MWE: % !TEX TS-program ...
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 ...
15
votes
4answers
951 views

Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used

The problem I'm writing a document where all of my equations are labeled, not by numbers, but by names, which I provide with amsmath's \tag command. I also use cleveref for ease of ...
15
votes
2answers
483 views

How can I convince hyperref and xindy to play together nicely?

I'm using xindy to generate indexes for a manual that gets translated into multiple languages. Unfortunately, hyperref and xindy don't like to play nicely together. I found some older mailing list ...
15
votes
1answer
933 views

How to break long URLs using common hyphenation but adding a line feed indicator?

I saw several questions like this one that request a solution for breaking apart URLs. I wonder if it is possible to hyphenate the words in a URL as it happens in normal text (i.e., breaking apart ...
15
votes
1answer
219 views

How can you make your CV accessible?

Recently I learned, from an insider, that a CV in PDF format might have a significant disadvantage: automated data mining tools used by HR sometimes fail to extract information from the PDF. Most ...
14
votes
3answers
590 views

Create \eqref* (\eqref without link, i.e. starred eqref)

I want to create a command \eqref*, which is the same like \eqref, but without a clickable link. There are similar commands for \ref (\ref*) and \autoref (\autoref*) which achieve this behaviour, but ...
14
votes
1answer
634 views

How to create my own ref label system?

I want to add a hyperlink to sections where a file is discussed. Additionally the usage should be added to the index. In principle this is very close to the label ref system. A simple approach would ...
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 ...
14
votes
3answers
6k views

I cannot get a (properly) underlined hyperlink in blue

First I just ignored the hyperref package and just wanted something that 'looked' like a link: \underline{\color{Blue} http://soundcloud.com} but I end up getting an underline about 3mm below the ...
14
votes
2answers
7k 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 ...
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 ...
14
votes
2answers
551 views

Xindy: Encapsulations for Index

Well, I struggled to improve my index generated by Xindy. I tried to add several entries with bold page numbers by using \index{...|textbf} as classified in latex-loc-fmts.xdy, without any success. ...
14
votes
3answers
585 views

Is it possible to draw a nonprinting box around text, as in the hyperref package?

I would like to be able to draw a box that shows up on in the PDF but does not print, just like the boxes around links that are made using the hyperref package. I would like to put a minipage ...
14
votes
1answer
7k views

How to disable initial view of PDF bookmarks panel?

The hyperref package automatically creates a list of PDF bookmarks, and it configures the PDF to have the initial view display the bookmarks panel, at least in Foxit Reader and Acrobat. To see the ...
14
votes
1answer
497 views

Where can I find out what various hyperref options do?

Where can I find a description of hyperref options, deeper than the one of the manual? I do not understand the meaning of several options. For instance, what is "redefines LaTeX internals" (option ...
14
votes
3answers
640 views

hyperref links break with babel + hebrew (or right-to-left language)

It's time for Eyal's babel + Hebrew incompatibility of the week. And this time: hyperref... :-( Basically, you can't get links with right-to-left text. It's about the direction rather than the ...
14
votes
2answers
1k views

Option unicode=true with hyperref

Is there a drawback when using the option unicode=true with the package hyperref and the engines PDFTeX, XeTeX and LuaTeX? In other words, can a portable document always have ...
14
votes
1answer
224 views

Making TikZ path into a hyperlink

I'd like to know if there's a way to make an arbitrary closed path in TikZ into a hyperlink; either directly or by turning it into a node. Here's an example of code to work with: ...
14
votes
1answer
907 views

How to turn on/off certain types (e.g. citation, url, file) of hyperref links?

The hyperref manual doesn't seem to document a way of turning different types of links (citation, url, cross-reference, file, ToC, footnote) on/off independently. One possible scenario would be to ...
13
votes
2answers
6k views

Customize PDF bookmarks

I have the following document (this is an example): \documentclass{book} \usepackage[bookmarks=true,pdfborder={0 0 0}]{hyperref} \title{Sample document} \begin{document} \thispagestyle{empty} ...
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 ...
13
votes
2answers
4k views

Hyperref + \url: long URL with dashes won't break

I've discovered a rather weird behaviour of PdfLaTeX. In this example \documentclass{article} \usepackage[breaklinks]{hyperref} \begin{document} ...
13
votes
2answers
3k views

Make PDF open in “Fill Window” mode with hyperref

When I usually open a PDF with Acrobat Reader it opens it in Fill Window mode (the page fills all the space of the window). When using the hyperref package it always opens the file in Full page mode ...
13
votes
3answers
909 views

Hyperref: Scandinavian characters (æø) don't work in \url, hyperlink is wrong

Background A while ago it became possible to use the letters æ, ø and å in URLs, and some websites, like the encyclopaedia Store Norske Leksikon, has made use of this. Recently, a question was ...
13
votes
2answers
528 views

\#\#\#\# becomes “##” in printout

I want to refer to a url using "####" as a stand-in for the many four digit codes which could take it's place. But this ... \documentclass{scrartcl} \usepackage{url} \usepackage{hyperref} ...
13
votes
3answers
279 views

Gobbling an argument if it starts with #

My problem comes from pandoc and markdown, but it is not directly related with these tools, but instead with "customizing" the resulting pdf via some tex macro programming, so I think it is on topic. ...
13
votes
1answer
353 views

highlights path sequentially BUT in order of clicking

I have been looking for a possibly difficult answer to a simple question. I would like to be able to highlight paths on a TikZ picture. I would like to highlight these paths by clicking on them and at ...
13
votes
2answers
2k views

Making endnotes clickable links with hyperref

I would like to use the endnotes package, hyperref and biblatex together to have links to my endnotes. Here is a MWE that shows how the links don't show up: \begin{filecontents}{testbib.bib} ...
13
votes
1answer
381 views

Make backrefs invisible in hardcopy

Is there a way to make bibliography back-references display and hyperlink in a PDF file but not print in a hard copy. When I use \usepackage[colorlinks=false,backref=page]{hyperref} I get a red ...
13
votes
1answer
249 views

Box around raggedright links spanning two lines extends to right margin

I need to use boxed links and ragged right text. The problem is that when a link spans two lines, though the link is broken correctly (when using pdflatex) the box around the linked text extends until ...