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

239
votes
7answers
57k 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?
21
votes
1answer
755 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} ...
34
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 ...
27
votes
1answer
9k 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
1answer
13k 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 ...
22
votes
2answers
1k 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 ...
43
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?
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 ...
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
1answer
945 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 ...
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 ...
15
votes
1answer
882 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 ...
11
votes
2answers
683 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 ...
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 ...
8
votes
1answer
9k 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 ...
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?
14
votes
4answers
927 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 ...
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 ...
6
votes
2answers
622 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 ...
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 ...
5
votes
1answer
58 views

cannot compile when using acronym package \Iac command multiple times

When using the acronym package (current version 2012/10/29 v1.38) with hyperref, the upper case indefinite article command \Iac does not compile in some cases. This code \documentclass{article} ...
4
votes
1answer
410 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 ...
10
votes
2answers
1k 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. ...
13
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 ...
9
votes
1answer
313 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 / ...
3
votes
2answers
3k 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 ...
5
votes
2answers
1k 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 ...
2
votes
1answer
6k 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 ...
10
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 ...
10
votes
3answers
661 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, ...
7
votes
1answer
2k 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]. . . . . . ...
4
votes
2answers
1k 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 = ...
7
votes
2answers
479 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}.
3
votes
2answers
4k 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 ...
3
votes
1answer
695 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 ...
36
votes
4answers
24k 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 ...
6
votes
1answer
2k views

Is it possible to open a video file via a link in beamer´╝č

I have searched through posts like "embedded video in PDF", it seems that this feature is only available in Adobe Acrobat. So I just thought the alternative solution: open a video file (using system ...
4
votes
2answers
721 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 ...
14
votes
1answer
832 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 ...
11
votes
2answers
468 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
4k 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. ...
7
votes
1answer
4k 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
301 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 ...
4
votes
1answer
3k views

How to create internet link in PDF?

Let us consider the following example : \documentclass[11pt,twoside,a4paper]{book} \usepackage{hyperref} \begin{document} For more information about 'TikZ' click on the following link : ...
4
votes
1answer
111 views

Defining a command for linked and indexed section headings?

What is the (preferred way of) defining a command that places a heading (like \section, \chapter, etc.) creates a label for this heading that can be referenced places the heading in the TOC (I ...
2
votes
1answer
1k views

htlatex leaves undefined reference (“??” link) but pdflatex produces correct output

We have a large document that runs through pdflatex and through htlatex. The pdflatex output is fully ok. The htlatex output is also ok (it contains all images etc.) except that for some ...
7
votes
2answers
137 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
627 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 ...