{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

3
votes
0answers
8 views

Troubles with hyperref and Tikz externalization

Consider the following example : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{hyperref} \usepackage{tikz} \usepackage{xparse} ...
2
votes
1answer
20 views

Color Options for Appearance of Links in Hyperref

Extending this wonderfully useful post ("options for appearance of links in hyperref"), I am curious if you might list all the color options (or point me to the appropriate documentation) for ...
3
votes
1answer
19 views

elsarticle class: how to get coloured links without boxes?

I'm using the elsearticle class. At present the links (citations, equation references, etc) are put in coloured boxes and I'd rather have the links coloured without boxes. So I tried putting ...
5
votes
2answers
145 views

\ref shows the right label but jumps to the wrong \label

in this MWE you can see/explore (hopefully, as it does not work for me) that \ref{tab:2} produces the right label but if you click on it, it will lead you to the \label{tab:1}. \usepackage{appendix} ...
1
vote
0answers
24 views

Classicthesis, acro and hyperref clash

I'm trying to get acro to work with classicthesis and with the hyperref option, but to no avail, though errors are gone when the hyperref option in acro is removd. The MWE is quite long on this one. ...
5
votes
1answer
35 views

Beamer's \pause doesn't delay hyperref's borders

When using \pause in beamer, link borders created by hyperref will appear even if the link text and the link itself (in \href{}) both appear after the \pause. How can I delay the border until the link ...
1
vote
1answer
16 views

knitr creating a wrong second “#” in a deep hyperlink

I would like to compile a .Rnw Document in RStudio with knitr that includes a "#" in the hyperlink (deeplink) of a float caption. See the minimum working example: (compiled with R Studio Version ...
0
votes
2answers
22 views

Line breaking with hyperref href with an underline in itemize

I have a simple itemized list like the following MWE: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
5
votes
1answer
39 views

Interpret TeX commands and remove curly braces from \href{} content

Context: In order to create DOI links I define a command\doi{<enter doi here>} as \newcommand{\doi}[1]{\href{http://dx.doi.org/#1}{doi:#1}} Problem: However this breaks with stupid input™ ...
0
votes
1answer
43 views

Hyperref links lost when using latex --> dvips --> ps2pdf

Given a latex file using the hyperref package, I wish to convert it to pdf via: latex "foo.tex" dvips "foo.dvi" -z -P Pdf ps2pdf "foo.ps" However, all hyperlinks are lost this way! Here's a ...
1
vote
1answer
19 views

Set border link color with hyperref in beamer

While the following works in the article class: \documentclass{article} \usepackage{hyperref} \hypersetup{colorlinks = false, urlbordercolor = {0 1 0}} \begin{document} ...
0
votes
1answer
22 views

when using hyperref package undefined control sequence \chapter error

I am using a custom class provided by my university for writing my thesis. Recently, I included the hyperref package and immediately I got a host of erros related to the \addtocontents command. I used ...
4
votes
2answers
56 views

How can I make \autoref keep the surrounding color?

\autoref's link color is set using the linkcolor=black parameter of the \hypersetup command of package hyperref. This implies that the link color does not regard the color of its surrounding text. How ...
6
votes
2answers
59 views

Renewing the \thelstlisting command when hyperref is on

I'm trying to change the appearance of the cross-ref to a listing in the appendix, so that it prints as \textsc{a}.1, not just A.1. The redefinition ...
2
votes
1answer
26 views

Changing \url{…} font [duplicate]

\url{...} produces a rather wide monospace font. It often does not fit into text width. If I wish to make \url{...} another font (such as maybe the same font as the text font), how to do it?
1
vote
0answers
21 views

\autoref for figures uses “section” instead of “figure” as text

My problem looks very similar to the problem in this question, and is exactly the same as the problem described on another forum. But none of those seem to have solved the problem. When I use the ...
2
votes
0answers
17 views

Biblatex, hyperlink postnote

I want postnotes for inline citations to be hyperlinked, i.e. I want the authorname, year, and any postnotes hyperlinked (but not prenotes!). I've used the answer here to get authorname hyperlinked, ...
3
votes
1answer
33 views

How to hide the page number of contents?

I used the \tableofcontents command and then \addcontentsline to add "Introduction" to the contents. The introduction is set as page 1, but my ToC shows a page1 to itself, too. Then I have page 1 and ...
2
votes
1answer
40 views

Create link of empty box

I make my first attempt on a beamer template. I created a simple graphic with my company logo and some fields as header (background for title). Now I would like to use the logo as home button. In ...
3
votes
1answer
30 views

destlabel option of the hyperref package does not work in combination with htlatex

This is related to my previous question. The use-case is still the same: I want to convert a document into HTML, and give the links in the generated HTML a permanent character, even when the structure ...
0
votes
1answer
28 views

Problems with Hyperref, Endfloat, Longtable and Appendix

I am struggling with my table references in combination with endfloat and longtable. Somehow, they are not referring to the right table. I get the following problem reported (I think that this is the ...
3
votes
2answers
26 views

No page break when using hypertarget in custom environment

I am trying to create an environment that would automatically create a label for each instance based on a global counter. This is the model example of what I'm trying to do. \documentclass{article} ...
4
votes
1answer
19 views

How to make linenumber referencing in lstlisting work with autoref

This Link provides an answer to the question how to make line-number referencing work with lstlisting. However, if I use \autoref it will only return the number and not something like Line 31.
2
votes
1answer
70 views

Is it possible to access command parameters?

I use hyperrefs extensively in my document and I define them like this: \hyperref[label]{some text \ref*{label}} It's really annoying that I need to repeat the label twice. Is it possible to ...
5
votes
1answer
44 views

Issue with hyperref and appendix packages

I can't use both (hyperref and appendix) packages together. When I try to compile my code with these two packages, the following errors arise: This is my MWE: \documentclass{book} ...
1
vote
0answers
20 views

Expand bookmark by single-clicking on it

Probably being too pedantic but is it possible to expand a bookmark by single clicking on it? Emphasis on single clicking! I know it is possible to expand a bookmark by double clicking, but I want to ...
3
votes
1answer
51 views

Opening a non-PDF file clicking on a bookmark

I know it is possible to open a PDF file using bookmarks. But is it possible to open a non-PDF file by clicking on a bookmark? I've read all documentation from hyperref and bookmark packages but ...
0
votes
0answers
22 views

Varioref and Cleveref inconsistent while redefining page

I am trying to use cleveref and varioref. I read here how should be the correct order of loading the packages. Also saying that \vref and friends would become clever since cleveref changes the ...
2
votes
2answers
62 views

htlatex causes hyperref package not to load completely

The following code runs perfectly fine when using the regular latex command. \documentclass[a4paper,11pt]{book} \usepackage{hyperref} \renewcommand{\sectionautorefname}[1]{Section~} \begin{document} ...
2
votes
1answer
56 views

hyperref not working. It goes to wrong page

I dont understand why my hyperref is not going to the page I wanted when I click it on my table of content? \documentclass[12pt, a4paper, oneside]{report} \usepackage[T1]{fontenc} ...
0
votes
0answers
40 views

doi package inserting http:/dx.doi.org/\let… instead of http:/dx.doi.org/… in bibliography hyperlinks

When I use the doi package, the links in my bibliography are: http://dx.doi.org/%5Clet%20... instead of http://dx.doi.org/... Any ideas? MWE: \documentclass[preprint,12pt]{elsarticle} ...
2
votes
0answers
58 views

Bibliography style elsarticle-num-names with DOI and hyperlinks but no explicit url

I prepared my article with elsarticle, using \citep & \citet throughout. I originally used apalike bibliographystyle but now need to change it to elsarticle-num-names for citation formatting ...
2
votes
0answers
40 views

Display shortcuts other than urls with href

Big picture, I am trying to develop an approach that will allow me to store the latex commands and labels (pre-expansion) that I use to typeset dynamic text (bib entries with cite, cross referencing ...
2
votes
0answers
52 views

Invalid page tree PDF [closed]

I have a generated LaTeX (python scripts, getting data from different sources) document which is then compiled into a pdf with pdfLaTeX. Generally the structure of the document is the following ...
1
vote
1answer
42 views

Modify hyperlinks in table of contents

I'm using hyperref package so that \tableofcontents has clickable links. Is there a way to force one hyperlink in \tableofcontents to refer to a given page instead of the automatically selected page? ...
2
votes
2answers
57 views

Add PDF title to bookmark using hyperref + Colour equation reference

I want to add a PDF title to the PDF bookmark using hyperref package. However it does not work. As shown in the picture, I want to add a title above the Introduction. Moreover, I want to make ...
3
votes
1answer
65 views

Manually added hypertargets are shifted by one line in PDF

I'm using the hyperref package to create links and targets between citations in the main text and references at the end of my document. Clicking on one of these hyperlinks leads to displaying the ...
4
votes
2answers
43 views

\nameref with quotes

How can I redefine the \nameref command to have the referenced caption in quotes? Here is what I have tried: \documentclass{article} \let\oldnameref\nameref ...
2
votes
1answer
48 views

Appendix labels in small caps and hyperref

I'm using the book class and I'd like appendix labels (letters) to be in small caps everywhere, particularly those generated by \ref and \autoref. I've tried doing it by redefining \thechapter after ...
1
vote
1answer
20 views

Changing the colour of *some* references

I am using \usepackage[colorlinks=true,linkcolor=black,linktoc=page]{hyperref} and the citations come out green, while the page numbers in the table of contents, figure and equation numbers come out ...
1
vote
0answers
23 views

Using cleveref with 2 different styles

I like to style my \cref as following (Geophysical Prospecting): Type 1: Fig. 1, Fig. 1(a), Fig. 1(a,b), Figs 1 and 2 Type 2: (Fig. 1), (Fig. 1a), (Fig. 1a,b), (Figs 1 and 2) I have tried with ...
1
vote
1answer
26 views

toc-like forward storage for captions

Dear experts: how does one write out the table captions for use later? Think \documentclass{article} \newcommand{\mycaption}[2]{\caption{#2}\label{#1}\savecaptioncontent{#1}{#2}} ...
6
votes
1answer
24 views

Svn-multi vs hyperref vs non-ascii svn info vs memoir headers

Here is the strange error of the day. Last weekend for "fun" I was playing around with Win 8 and TortoiseSVN. All of a sudden after a commit my LaTeX project no longer compiled. I'm down to the ...
5
votes
1answer
23 views

Wrong autoref names when using babel's `main=` feature

I have just tried out the main=<language> package option to babel and found that it seemingly does not play nicely with hyperref's \autoref. Using the traditional syntax works nicely: ...
1
vote
1answer
36 views

Texcount error 'could not recognise package list'

using texcount in the command line interface produces the error 'could not recognise package list'. I'm using texcount -1 -sum -inc mymainfile.tex which includes several files in a two different ...
2
votes
1answer
19 views

Hyperref Working; Need to add additional cover page bookmark, not included in the contents

Currently \usepackage[bookmarks]{hyperref} is working. PDFs I've viewed in the past, however, include bookmarks for pages prior to the Contents (e.g. Cover, Copyright, etc.) Is there a way to add a ...
2
votes
2answers
36 views

hyperref and loading accents

Here's my MWE : \documentclass[a4paper,11pt]{article} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} ...
2
votes
1answer
32 views

Question on why hyperlinks are not aligned with adjusted page counting

When I adjust the page countering the hyperreference under the hyperref package shows the correct page, but when the hyperlink is clicked it takes me to the page which had been indicated without the ...
2
votes
2answers
76 views

Hyperref causes error in auto-pst-pdf (used by chemstyle)

While waiting for useful tips to improve my other question, I'm facing another problem with chemstyle package: the MWE of my other question does work with the explicit [TMP1] optional argument passed ...
1
vote
1answer
26 views

\autoref is only producing a number. How do I make it include the Theorem/Proposition/Lemma?

\autoref is only producing a number. How do I make it include the Theorem/Proposition/Lemma? Currently I have: \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] ...