{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)

435
votes
7answers
135k 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?
57
votes
1answer
25k 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.
35
votes
3answers
5k 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 ...
9
votes
2answers
1k views

How to use unnumbered chapters with KOMA-script?

I am having some issues with the hyperref package. I would like to create a Introduction chapter without a number so I use \chapter*{Introduction} and \addcontentsline{toc}{chapter}{Introduction} ...
67
votes
3answers
29k 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?
32
votes
2answers
25k 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 ...
29
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} \...
16
votes
2answers
900 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 ...
15
votes
2answers
2k 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. ...
15
votes
1answer
4k 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 ...
14
votes
1answer
2k 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 ...
25
votes
2answers
2k 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 ...
16
votes
1answer
2k 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 ...
17
votes
2answers
11k 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 ...
19
votes
1answer
1k 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?
17
votes
3answers
14k 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 ...
5
votes
2answers
7k views

\phantomsection - how to jump to the chapter title instead of the center of the page (only)

I use \phantomsection in my document, because I have nonnumbered chapters in Table of Contents: \chapter*{Chapter title} \phantomsection \addcontentsline{toc}{chapter}{Chapter title} Command \...
25
votes
1answer
42k 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 ...
15
votes
4answers
1k 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 cross-referencing....
8
votes
1answer
18k views

Link to local (PDF) file [duplicate]

Possible Duplicate: Does hyperref work between two files? I want to make a link in LaTeX to a PDF file on my local network drive, i.e. when you click on it then Adobe Reader should open and ...
12
votes
2answers
4k 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 ...
5
votes
1answer
2k views

Create a link to open a script as a text file (don't run it) from a latex document in linux

I would like a command such as this: \href{../src/wkfl/vlyUpstrOvrlp.sh}{vlyUpstrOvrlp} but I want the subsequent link to open the file in gedit or the default text editor in linux. Bonus points ...
4
votes
1answer
451 views

no border around hyperlinks with hyperref

MacTEX-2014, TeXShop 3.36.1 on Mac OS 10.9.5 -- when using hyperref I do not see the colored border that should appear around the hyperlinks in the pdf. for example, when compiled with pdflatex, the ...
12
votes
1answer
6k 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 ...
19
votes
1answer
6k 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?
4
votes
2answers
6k views

Getting rid of DOI, ISSN links from bibliography

In light of this and this AND if I'd want to use pdflatex instead of biblatex, how do I get rid of doi, ISSN links from my bibliography? I can write a script such as here but that leaves a , hanging ...
11
votes
3answers
803 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, fill=...
6
votes
1answer
2k 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 ...
6
votes
2answers
1k 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 ...
4
votes
2answers
3k views

Single link in (Author, Year) citation style using natbib and hyperref

natbib and hyperref create by default two links to the bibentry in the reference section|chapter of the document: \begin{filecontents}{\jobname.bib} @book{author08, title = {{A Title}}, publisher = {...
11
votes
1answer
2k 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 \pageref{pg:...
7
votes
1answer
190 views

Constant height and depth of hyperref link boxes

For boxes around links which the hyperref package creates, their height/depth seems to be dependent on the maximum height and depth not of letters of the enclosed material (see top example pair below) ...
5
votes
2answers
623 views

Certain hyperlinks (memoir+hyperref) placed too low

I tend to use the memoir class together with the hyperref package, in order to have my table of contents, the lists of tables and figures, and the bibliography be hyperlinked. While all links to ...
16
votes
2answers
3k 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 ...
11
votes
2answers
8k 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 ...
10
votes
1answer
387 views

Macro to automatically save section name of previous section and next section

EDIT: I've edited the code that reproduces the anomalies, but I'll work on the code to more accurately depict the problem later on the day. Weird spacing in index Index doesn't appear in footlinks / ...
4
votes
2answers
2k views

Did anybody succeed in opening a text file at a certain line from a PDF link?

In my attempt to clarify some inconclusive topics and a part of the series "did anybody succeed" (e.g. Did anyone succeed in playing embedded movies inside Acrobat in Linux?), here it is a new ...
2
votes
1answer
3k views

Special character in url link

I would like to insert the following text: \href{http://en.wikipedia.org/wiki/List_of_successful_coups_d'état}{http://en.wikipedia.org/wiki/List\_of\_successful\_coups\_d'état} However, that doesn'...
13
votes
1answer
3k views

How do you make a TOC link cover text and page number?

The hyperref package allows you to specify that TOC links in the pdf cover the text (default) or the page number (linktocpage=true), but not both. That is, you can have this: [My Title]. . . . . . ....
6
votes
1answer
522 views

Is it possible to create a hyperlink from an \includegraphics picture?

I'd like to make an image clickable, meaning I want to turn it into a hyperlink. I am including the image via \includegraphics but I am not sure how to make it clickable. Anyone knows how to do that?
6
votes
2answers
2k views

TikZ Document Navigation (\label and \ref commands)

I am currently a university student studying engineering. I have been a user of LaTeX for a few years now and cannot work out how to solve the following issue. In Australia, there are standards which ...
3
votes
1answer
48 views

Multiple hyperlinks from single \includegraphics

I have an image like this which I have included with an \includegraphics command. I want each of the circles to be a link to a different part of the document. I.e. clicking on the blue circle ...
5
votes
1answer
802 views

Link to index in TOC points does not point to index, but to whatever is right before index

My LaTeX document contains an index which is also referenced in the table of contents via \addcontentsline. The page number displayed in the TOC is correct. The link, however, is not. (If I view the ...
4
votes
3answers
469 views

How to get \url{} and \href{} displayed identically [duplicate]

I would like the output of \url{} and \href{} displayed identically. I have changed the color for both to be blue, but it appears as if a different for is being used as well: Code: \documentclass{...
8
votes
2answers
914 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}.
8
votes
3answers
4k 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
138 views

Making broken references extra-visible

I would like to have all the broken links in a document come out purple when I compile, and the working links come out whatever color I've set internal links to. For example, in the following ...
3
votes
1answer
885 views

Representing hyperlinks differently in a single pdf file

Can someone tell me how to color/represent (only internal) hyperlinks in a pdf differently (preferably just by using LyX,i.e. without diving deeper into pure latex) ? For example I would like the ...
2
votes
1answer
218 views

Underline long url and linebreak

I have a long url which I want to appear blue and underlined. Furthermore it must linebreak if the url is to long for a single line. \documentclass[a4paper,10pt]{article} \usepackage[colorlinks,...
2
votes
2answers
357 views

How to remove link from title in foot

When using \insertshorttitle in the footline (or elsewhere) it is automatically inserted as a click-able link. Therefore it is for example typesetted in a different colour. (marked with a red circle ...