{links} is specifically about dealing with hyperlinks. If your question is generally about {urls} or about the {hyperref} package, use the respective tag instead.

learn more… | top users | synonyms (1)

205
votes
7answers
47k 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?
41
votes
3answers
12k 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?
33
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 ...
30
votes
4answers
18k 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 ...
25
votes
1answer
7k 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.
21
votes
2answers
989 views

Making TikZ nodes hyperlinkable

I have a TikZ tree. Now I want to make the nodes click-able directing to relevant sections in the document (or directed to URLs). Some of the content in the nodes are not text. Is it possible to turn ...
21
votes
1answer
674 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} ...
19
votes
1answer
12k 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 ...
19
votes
1answer
605 views

TikZ image with hyperlinks --> GIF/PNG image + HTML image map

I have a (complex) TikZ-based figure with hyperlinks. Now I need a web version of this figure that preserves all hyperlinks. Converting the PDF to GIF or PNG is trivial, but for the hyperlinks I ...
18
votes
1answer
2k views

Clickable “tel:” URL for TeX resume

I need to make my telephone number clickable. You might be familiar with this in Gmail's clickable phone numbers that dial out to your mobile phone, for example. I'm working on my resume, and I'm ...
18
votes
2answers
2k 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 ...
16
votes
1answer
3k views

How display the href link in the footnote?

My document has several \href that I would like to be shown on the footnote. How can I do it?
15
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. ...
14
votes
1answer
866 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?
14
votes
1answer
760 views

How to make listings code correct copyable from PDF and with hyperlink

If I generate listings code with line numbers and copy the result from the PDF I can not use it again as tex code. First the line numbers are included which they should not, second spaces are included ...
14
votes
1answer
461 views

Having all links underlined with dotted line

so I'm trying to figure out how to have all links underlined with a dotted line. The furthest I got with this and this is: \documentclass{article} \usepackage{xcolor,soul,lipsum} ...
13
votes
4answers
823 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 ...
13
votes
1answer
547 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 ...
12
votes
3answers
5k 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 ...
12
votes
2answers
1k views

“Automatic” section labeling?

I would like to be able to link within a document to another section without having to explicitly put a label after that other section command. hyperref does this with the TOC labels, so I think that ...
12
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 ...
12
votes
1answer
1k views

Can you have hyperlinks to locations in different PDFs?

It's possible to hyperlink to another PDF file using Adobe Acrobat using the following LaTeX code: \href{run:target.pdf}{Click me!} If this is placed in source.pdf, then you can click on the ...
12
votes
1answer
245 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 ...
11
votes
1answer
297 views

Is it a good practice if we always locally precede \href with \sloppy?

Is it a good practice if we always locally precede \href with \sloppy as follows? if you are interested to know the details, please contact me at {\sloppy ...
11
votes
2answers
6k 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 ...
10
votes
2answers
649 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 ...
10
votes
1answer
3k views

email adress renders incomplete mailto in PDF

When I put \email{e.xmaple@example.com} in a LaTeX document the resulting PDF shows the email address correct, but the link points to .xample@example.com. de character before the dot gets left off. ...
10
votes
2answers
384 views

Generate large document by pdfTeX, then break result into many PDF files while preserving links

This is the PDF file of a book I wrote: http://www.abstractmath.org/Handbook/handbook.pdf It takes a long time to download because it is a big file. I generated it using pdfLaTeX. Is there a way to ...
10
votes
1answer
410 views

PDF bookmark going to the bottom of the previous page in case when caption header is on the top of a page

\documentclass[12pt,a4paper]{mwrep} \usepackage{lipsum} \usepackage[nodisplayskipstretch]{setspace} \setstretch{1.3} \usepackage[hidelinks,unicode,pdfencoding=auto]{hyperref} \usepackage[all]{hypcap} ...
10
votes
1answer
5k views

hyperref package, breaklinks option

When I compile with LaTeX + dvips, I get the following warning message: Package hyperref Warning: You have enabled option `breaklinks'. (hyperref) But driver `hdvips.def' does not ...
9
votes
2answers
970 views

Embedding a PDF file with clickable external links into a LaTeX document

I want to embed a screenshot of a web page into a LaTeX document as a vector graphic with clickable links. I'm using wkhtmltopdf to render the web page as a letter-sized pdf file with working links. ...
9
votes
3answers
614 views

How to rotate hyperlink with text

How can I rotate the link of a text in a node. Here is my MWE: \documentclass{article} \usepackage{tikz} \usepackage{hyperref} \begin{document} \begin{tikzpicture} \node (rect) [rectangle, ...
9
votes
2answers
4k views

IEEEtran BibTeX Style - how to deactivate URLs?

I am using the following BibTeX style for my bibliography. \bibliographystyle{IEEEtran} \bibliography{IEEEabrv,references,thesis} This formats bibliography entries like this: , including a ...
9
votes
1answer
733 views

How do I remove hyperlinks from \tableofcontents in beamer?

I am designing a presentation in beamer and would like to use \tableofcontents to generate an outline frame. However, by default, beamer includes hyperlinks on the section names in the table of ...
8
votes
2answers
820 views

Hyperlink's bad navigation of sub-figures on click

I am using hyperref package to have hyperlinks automatically generated for figures, equations, table of contents, etc... My problem is if I have a big figure consisting of sub-figures and then have a ...
8
votes
1answer
6k views

Further customize color of hyperref links

I have tried to find a way to customize how internal links are colored, but I don't yet have the expertise in finding and redefining commands. In the LaTeX example below, I describe how I would like ...
8
votes
1answer
475 views

How to create email hyperlink with predefined subject in LaTeX?

I´m wondering if you can include an email hyperlink in a PDF, that will not only open my mail application with the specified mail address, but also insert a subject, which I specified in LaTeX? I ...
8
votes
3answers
3k views

multibib and links to bibliography (with hyperref, natbib)?

I'm using the multibib package but cannot get links to work with it and hyperref. Is this combination possible? A sample document follows: If I add a \usepackage{natbib} in the preamble then links do ...
7
votes
1answer
3k views

List of url-links with \href

When trying to create a list of weblinks using \documentclass{report} \usepackage{hyperref} \begin{document} \begin{itemize} \item \href{www.washingtonpost.com} \item ...
7
votes
2answers
411 views

How to make a link open multiple pages when clicked?

I have to create a hyperlink which opens two links with one click. Is it possible using LaTeX? I'm using \href{<url>}{Open two links}.
7
votes
2answers
126 views

How to set hyperfirst to just one glossary?

This is a follow up question to here. How can I set my acronyms glossary to hyperfirst=false and the main glossary to hyperfirst=true? I tried to give that as an option to \printglossary but that ...
7
votes
1answer
3k views

Is it possible to make LyX generate clickable hyperlinks into the PDF result?

Is there a way in LyX to set up a) a reference to a web resource by URL, b) a reference to another location in the same document, in a manner that turns the reference to a clickable link in the ...
7
votes
1answer
3k views

External (HTML) link to a specific page of a pdf file

I want to hyperlink to a certain page of a pdf file created with LaTeX from an HTML context or just as a plain-text link outside the file, e.g. using <a href="...">...</a>. Is it possible ...
7
votes
1answer
225 views

Switch between box and color links with hyperref

How can I have both boxed and color links in the same document? I know I can use \usepackage[colorlinks]{hyperref} and have colored links instead of boxes, but how do I have both in the same ...
7
votes
1answer
210 views

Distinguish \nameref references in print version

I used the \nameref command to reference to names of captions etc. I also used the option colorlinks=true so I have colored references which can be distinguished form "normal" text. In my print ...
6
votes
6answers
4k views

How to avoid link higlighting when using package hyperref?

I'd like to include some http links in my document. So i Included the hyperref package so that i can use the command \url{} Microsoft Surface\footnote{\url{http://www.microsoft.com/surface}} This ...
6
votes
2answers
580 views

Hyperref link placement: alignment to left page border and top of page

(a) Is is possible to have certain hyperref-hyperlinks (such as those to sections and also (when using memoir) to the table of contents, lists of figures and tables, and bibliography) point to the ...
6
votes
1answer
244 views

Clicking on a link I don't jump to the **exact** location of the label, just somewhere around it

When I label an equation and later have a reference to it, then by clicking the corresponding link the pdf I jump to that equation, with the equation being exactly at the top of the page. Same goes ...
6
votes
1answer
481 views

Selected references without hyperlink

When using the hyperref package, is it possible to tell LaTeX not to create a link for some references? In my case the page number is displayed in the footer in \fancyhf[FC]{\thepage\ of ...