{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

120
votes
10answers
9k 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, ...
1
vote
1answer
70 views

Is there a way to make the footnote package work correctly with hyperref?

I'm using the footnote package in conjunction with the hyperref package. However, when using more than one footnote per line in an environment (e.g. table, but also other floating environments), the ...
6
votes
1answer
51 views

Why hyperref's \url may be used in preamble within a macro but not within a box?

The following MWE, where a macro involving hyperref's \url is defined in the preamble, works like a charm: \documentclass{article} \usepackage{hyperref} % ...
3
votes
1answer
55 views

can't \hyperlink{\includepdf

I'm making a image grid that links to pdfs. I want the pdf to link to the image too. Neither the hypertarget to the image nor the hyperlink to the pdf work. Are there any jump to page instructions ...
1
vote
0answers
25 views

LyX XeTeX and hyperref error hline

I have a main LyX document with a number of child documents, which have English, Hebrew and Greek text. On compilation, I get an error: ! Undefined control sequence. <argument> \@currentHref ...
0
votes
0answers
33 views

\paragraph inexplicably turns into clickable link

I have a weird LaTeX problem. When inserting the \ref{} link to the \subparagraph flagged as "crucial line" in the following MWE, the preceding \paragraph headline inexplicably turns into a clickable ...
26
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)
0
votes
0answers
18 views

using hyperref, change chapter to section in ToC

I would like to change the level in the PDF bookmarks using hyperref of some entries in the appedix. In my appendix I have several chapters, the first one being "appendix" and then some more... In ...
10
votes
1answer
118 views

Why can't I expand \ref*{} as a string?

In the following code, if you change \def to \edef the code crashes. Nor can you perform normal string operations or tests. Removing hyperref (and replacing \ref* with \ref) works fine with \edef. ...
0
votes
0answers
31 views

Having a problem generating a command that make chapter and label in one line

I'm writing my thesis, modifying the ezthesis template. I did a new command that mix chapter and label in one line. \newcommand{\chaptercolored}[2]{\textcolor{colorchap}{\chapter{\textbf{#2}}}% ...
2
votes
2answers
29 views

Bookmarks to the second part leads to the wrong page (page of the first part)

The bookmark/link in PDF to the second part ("Quels impacts ?") leads to the wrong page (one early). This is also true for the ToC in the PDF (the page number here is correct, just the hyperlink is ...
1
vote
0answers
27 views

Problem with citation in \thanks using amsart and hyperref with pagebackref

I'm writing a paper using amsart and the pagebackref option of hyperref. I want to use the \thanks command to acknowledge someone for pointing me to a specific reference. But I get an error. ...
2
votes
1answer
54 views

newcommand with \href [duplicate]

I'm having trouble using newcommand with the \href I would like a newcommand like this: \newcommand\link[2]{\href{#1}{\underline{#2}}} This command works fine quite all, for exemple: ...
0
votes
0answers
19 views

How to hyperlink to files relative to the current file with hyperref?

I cannot get relative links to files to work when using: \usepackage[pdftex]{hyperref} I can only get the following to work: /href{file://full-path/filename}{text} I have tried the following ...
12
votes
1answer
3k views

Formatting back references in bibliography

I would like to change the way the back references are shown in the bibliography, such that they are all shown within parentheses. So I would like to see (page x, y, z) after my bibitems. This ...
15
votes
2answers
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?
0
votes
0answers
37 views

Hyperreferences broken in case of enumeration in longtabu

Hyperref points at emumerated item instead of table caption. Minimal example: \documentclass[14pt,twoside]{extreport} \usepackage{type1ec} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} ...
1
vote
2answers
32 views

Reference list of figures with autoref in continuous text

How can I create a reference with \autoref{} to the list of figures (or glossary, list of tables, etc.) within continuous text? Minimal Example \documentclass{article} \usepackage{caption} ...
0
votes
0answers
42 views

Bookmarks in .out file but not in .pdf

I have a big problem and I would greatly appreciate your help. In order to sumbit my PhD thesis for publication in an online library, I need to add bookmarks. I used the hyperref package with the ...
0
votes
1answer
49 views

Figure reference numbers off by one with cleveref

I am having an issue with generating my dissertation using cleveref, where the figure references are references are off by one, such that the reference to figure 1.1 says Fig. 1.0. Anyone have any ...
4
votes
1answer
69 views

incomplete ifnum

I am using a loop to define keys with the xkeyval package, as well as to actually read out the keys inside some self-defined command. Everything works perfectly - but for some reason, as soon as I ...
0
votes
1answer
32 views

Remove paragraph numbers, but still have bookmarks with hyperref

How can I remove the numbers of my paragraphs, but still keep the links within my LateX file using hyperref? It's a bit like this question, but then with paragraphs: No section numbers, but still ...
2
votes
0answers
66 views

hyperref bookmarksnumbered prefix or suffix

Is there a way to modify the bookmarksnumbered option of hyperref to add a prefix and/or suffix to the section numbers? The option currently changes the bookmark 'Introduction' to '1 Introduction', ...
2
votes
1answer
51 views

Edit hyperref PDF metadata and options in external software [closed]

I am looking to figure out whether there is a way to edit options that the hyperref package offers in other software. To be more precise, what I am particularly after are the following ones: ...
11
votes
3answers
410 views

Why does hyperref overrule so many things?

One very usefull package is the hyperref-package. However a lot of times this package interferes with other packages or structures within a LaTeX document. So what is it about hyperref that makes it ...
3
votes
1answer
63 views

Custumize TOC only for the appendix part

I am currently writing in article class and I would like to do something really specific in my toc. Currently it looks like this: I got the phrase "Appendices" in there by using ...
0
votes
1answer
32 views

No autoref name for `Appendix'

I get the following warning in LaTeX while trying to automatically refer via \autoref{} to a label in my appendix. No autoref name for `Appendix' I guess it is trying to tell me that it has no ...
1
vote
1answer
51 views

url break in biblatex versus url break in \url

I have code. In this code the url break in \printbibliography is not working. The url break in \url is working. Code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{filecontents} ...
24
votes
2answers
15k 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 ...
1
vote
0answers
147 views

How do I Auto-Label Hyperref Fillable Forms \TextField?

Is there any way to put an automatic label into the hyperref package's \TextField parameters field like this: \newcounter{lexemeCounter} ...
2
votes
0answers
28 views

Using \vspace (and other macros) in section headers breaks hyperref PDF-index

the following code compiled with pdflatex produces a PDF file with a PDF index. Sadly, the entry in the index id "5mm Test" instead of just "Test": \documentclass{article} \usepackage{hyperref} ...
7
votes
3answers
202 views

Reference to List Items in Theorem Environment with Label Type “Theorem”

I'm trying to set up references to list items in theorem environments. Using the thmtools and the cref-package I am able to reference theorem environments, such that the theorem type, e.g. theorem, ...
0
votes
0answers
28 views

hyperlink with bib.tex

I was wondering if someone can provide a minimal working example of referencing the authors name in the article with a hyperlink to the bibliography of that article? Thank you.
1
vote
1answer
55 views

Linebreak in newcommand and reference to hyperref

I try to define the name of a document and to use this name in hyperref resp. as the file's properties etc., but for some reason the pdftitle and the pdfkeyowrd option seem to clash with the line ...
5
votes
2answers
121 views

Automatically convert \href URLs to citation and bibliography

Using the wonderful hyperref package, I've been writing PDF files that I've been very happy with that contain links to web-based URLs so that while reading the PDF file using a PDF viewer, when a ...
0
votes
0answers
62 views

What happened to hyperref? No bookmarks?

See the MWE below: \documentclass[aps, prl, twocolumn]{revtex4-1} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{natmove} \usepackage[hidelinks, ...
0
votes
1answer
67 views

Circumflex in a pdf bookmark using \texorpdfstring

In this MWE, how could you add a circumflex inside pdfstring argument of the \texorpdfstring command so it can be displayed in the pdf bookmarks? MWE: \documentclass{article} \usepackage{amsfonts} ...
5
votes
1answer
145 views

Color switches are problematic with footnotes, longtable and hyperref

When using the color package in its switch form (\color cf. \textcolor), things can get confused using certain packages, with footnotes, and with section headings. The section headings issue was ...
0
votes
1answer
37 views

compatibility cleveref and varioref amsmath [duplicate]

I try to use cleveref and varioref and ams* packages together. But I get some trouble, equations and sections label type seems to change and that does work well. Here is my example: ...
1
vote
1answer
35 views

Can't get url's to show color [duplicate]

I want to have url's with no background, but still a distinctive color so as to indicate that they are clickable. I am defining \documentclass[line, margin]{res} \usepackage[hidelinks]{hyperref} ...
4
votes
1answer
49 views

Wrong \href anchor location

I use hyperref and pgf packages. I need pgf to include and position an image: \pgfputat{\pgfxy(-0.2, -2.4)}{ \pgfbox[left,base]{ \includegraphics[width=0.19\textwidth]{\@universitylogo} ...
6
votes
1answer
114 views

Test the hyperlinks of a pdf document

Is there any way to test the hyperlinks of a pdf file ? Suppose I have a pdf file containing a large number of hyperlinks, can I test automatically the response I will have when following those links ...
6
votes
2answers
249 views

amsthm with shared counters messes up autoref references

When I define amsthm theorem environments with shared counters, autoref messes up the names of the references. For example, in the output below, we should have "Definition 2" instead of "Theorem 2". ...
2
votes
1answer
35 views

Open reference to long directories paths

I am trying to link to a directory while being in a tabular environment. The path of the directory usually is pretty long and should linebreak at the boarders of the table. Additionally it would be ...
1
vote
0answers
30 views

Links not showing up in PDF output

I have an odd problem with hyperlinks (using hyperref). When the link description and the url are identical, everything works fine, like so: But when I try to post a url with a description, like so: ...
3
votes
1answer
43 views

One bookmark per longtable

I asked a question about how to generate bookmarks for tables and figures a few month ago and received an excellent answer (solved question). The proposed code works like a charm for normal tables. ...
1
vote
1answer
128 views

Problem using thmtools, hyperref and showkeys all together

When I use \eqref (from amsmath) in the optional argument to the proof environment (from amsthm) and the three packages thmtools, hyperref, and showkeys are loaded, TeX runs into an infinite loop. ...
1
vote
2answers
82 views

hyperref URL using BibTeX

I am trying to hyperrefan URL using class scrartcl, Bibtex, package natbib and bibliography style authordate1. The paper is characterised as @article in the .bibfile and as the URL entry is not used ...
4
votes
1answer
66 views

Problem with multiple sets of radio buttons in PDF generated from hyperref

I know very little about Forms with hyperref, but I have a suspicion that this might be related to the fact that you're supposed to only have one Form in a document. I would essentially like to ...
0
votes
1answer
35 views

Hyperlinks in theorem names

With the following code: \documentclass[a4paper]{report} \usepackage{lipsum,amsthm,thmtools,hyperref} \declaretheoremstyle[ spaceabove=\topsep, spacebelow=\topsep, headfont=\normalfont\bfseries, ...