{links} is specifically about dealing with hyperlinks. If your question is generally about {urls} or about the {hyperref} package, use the respective tag instead.
111
votes
6answers
22k 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?
34
votes
3answers
6k 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?
27
votes
4answers
7k 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
3answers
1k 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 ...
21
votes
1answer
4k 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.
19
votes
1answer
412 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}
...
17
votes
2answers
626 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 ...
17
votes
1answer
1k 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 ...
15
votes
2answers
326 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 ...
14
votes
1answer
7k 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 ...
14
votes
1answer
342 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
1answer
625 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?
12
votes
1answer
886 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.
...
12
votes
1answer
2k 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?
12
votes
3answers
546 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 ...
12
votes
1answer
197 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
244 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
4k 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 ...
10
votes
3answers
3k 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 ...
10
votes
2answers
1k 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
1answer
719 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 ...
10
votes
1answer
1k 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 ...
10
votes
1answer
317 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
2answers
350 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 ...
9
votes
2answers
593 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
2answers
500 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 ...
9
votes
1answer
2k 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.
...
9
votes
1answer
509 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
3answers
534 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, ...
8
votes
2answers
560 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 ...
7
votes
2answers
670 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 ...
7
votes
1answer
1k 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
2k 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 ...
7
votes
1answer
96 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 ...
7
votes
1answer
399 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 ...
7
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 ...
6
votes
2answers
390 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
1k 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 ...
6
votes
1answer
175 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
2answers
1k views
Add a link to the TOC
I'd like to link the Table of Contents in the footer of each page.
I can achieve this thanks to this hint like so:
# In the hyperref section of the document preamble
\cfoot{\hyperlink{page.1}{TOC}}
...
6
votes
1answer
147 views
adjusting a constant in a *.bst file (plainurl.bst)
I am using plainurl.bst style, Miktex 2.8, pdflatex to generate a pdf file. It gives explicitly the URL of my bib file. I would like to get this link attached to the title (i.e. embedded below the ...
6
votes
1answer
59 views
How to carry long text of \href to the next line while ocgcolorlinks is present?
This simplest code
\documentclass[a4paper]{book}
\usepackage[ocgcolorlinks]{hyperref}
\begin{document}
\href{"some URL"}{"long text"}
\end{document}
by compiling with pdflatex puts the "long ...
6
votes
1answer
280 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 ...
6
votes
1answer
361 views
Links in beamer theme Warsaw don't work if notes are shown and title is set
I wonder that I found this issue nowhere in the web. For me this occurs since years over different versions. Now I took the time to figure out under which conditions it happens. I would be very happy ...
5
votes
2answers
146 views
Is it possible to have URLs link from a pdf to the webpage? [duplicate]
Possible Duplicate:
How does one insert a URL correctly?
I'm writing up a document, and at one point I cite a file online found at ...
5
votes
1answer
181 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 ...
5
votes
2answers
187 views
How to make the hyperlink point to the top of linked figure and item of enumeration?
I want to create a problem booklet. Each problem numbered by enumerate has at most one figure that may either be in marginpar or float and occupy the full width.
The caption for each figure has a ...
5
votes
2answers
44 views
\href macro in \section conflicts with local hyperref linking in ToC
If I have a section like so
\section{Section 1}
then in the ToC, so long as I use the hyperref package, it is linked to that particular section. However, if I use an href tag as the section ...
5
votes
2answers
2k 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 ...
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 ...


