Tagged Questions

{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
1answer
27 views

How can I make a whole listings line into a hyperlink?

Let's say I have a document with a listings. And I want to convert that listing into a hyperlink (e.g. to the source code). The first instinctive attempt will be something like: ...
3
votes
1answer
13 views

Undefined control sequence error with mhchem and hyperref, \ce within \section{}

I get an "undefined control sequence" error when trying to use the mhchem and hyperref packages together, when \ce is within a \section{} label. A minimum example that demonstrates the problem: ...
2
votes
1answer
47 views

Removing red boxes around references

I have seen some solutions on here to problems regarding removing red boxes from hyperlinks, but I have an issue with red boxes around references. Whenever I use the commands \eqref{} or \footnote{} ...
1
vote
1answer
45 views

Undefined control sequence at: “\begin{document}”

When trying to compile this document: \documentclass{article} \usepackage{hyperref} \usepackage{subcaption} \usepackage{svg} \begin{document} \end{document} I get the following error message: ...
2
votes
1answer
20 views

Hyperref command doesn't work with report document class

When I use \usepackage{hyperref} it doesn't complile the code. \documentclass[a4paper,11pt]{report} \usepackage{a4wide} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} ...
1
vote
3answers
23 views

Customize single \part sectioning command with correct TOC links in PDF?

I want to use one \part (so, not all) as numbered sectioning command (so, no \part*), but I want to have a separate entry for the actual part title, separate one for the TOC typeset in PDF, and ...
0
votes
0answers
33 views

How to have a visual indicator for the hyperref target in PDFLaTeX

I want to be able to link to an item within a PDFLaTeX document and have the linked item pointed out by some indicator (perhaps a flashing arrow or something similar) when I land in its page. So for ...
1
vote
0answers
29 views

Hyperref ruins formulas in Lyx 2.1

I am writing lecture notes in LyX 2.1 on Windows and I have recently enabled hyperref in document settings and since then I get strange crossed L marks before every formula I put, e.g.: Anybody ...
1
vote
1answer
18 views

Moderncv shorthand URL in header

I'm using moderncv to write my CV and I'd like to use a shorthand link in the header of my CV. The command \httplink has an optional argument to do this, but this argument is not passed to \homepage. ...
0
votes
0answers
34 views

PDF page numbers are not correct page number style [on hold]

I am using hyperref with pdflatex to produce a pdf. The first 10 or so pages of the document are Roman numbered and all subsequent pages are Arabic numbered. All page numbers as they appear on the ...
2
votes
2answers
25 views

\usepackage[hyphenbreaks]{breakurl} not working in \footnote or appendix

I am using the package breakurl to avoid the urls to be out of the document. I am using TexMaker under GNU/Linux (concretely Debian wheezy), and generating a PDF file. The package works quite well ...
0
votes
0answers
9 views

Chapterbib messing hyperref links

I am currently writing my thesis using my university's template. Since I have to write several chapters in different languages, I am using the chapterbib package to be able to have different ...
1
vote
1answer
21 views

Adjust jump location of hypertargets

In a document, which uses text links heavily I have the problem, that the target are always out of the view of the pdf viewer, when jumping there and I could not find a proper solution. Preferably ...
0
votes
1answer
38 views

How to reset the font color to black for the entire document?

The font color of Contents section and List of Figures and List of Tables sections is blue in color in the existing preamble. How can I change this back to black?
1
vote
1answer
25 views

Inserting an external page before front matter using its own page counter

I have a manuscript (my PhD Thesis, in fact) that uses Roman numerals for showing page numbers in the front matter and Arabic numbers for the page numbers in the main content. Now I want to add an ...
1
vote
0answers
15 views

TextField renders differently in different PDF readers [closed]

This is my code: \documentclass{article} \usepackage{hyperref} \begin{document} \begin{Form} \fbox{\TextField[name=foo,value=test123,maxlen=10,borderwidth=0pt]{input:}} \end{Form} \end{document} ...
1
vote
1answer
30 views

gb4e: A package specific \ref{}-definition

I use \usepackage{gb4e} to reference and to contiuously number my linguistic examples. It works like this: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{gb4e} \begin{document} ...
2
votes
1answer
16 views

pagebackref in revtex4 with multiple references

MacTEX-2014, Mac OS 10.9.5 -- when I use the code below to add back reference links in the list of references (with pagebackref in revtex4) only the links of first and the last reference appear: I get ...
1
vote
1answer
22 views

Dollar sign (\$) dysfunctional in hyperref's \url{}

When escaping the dollar sign inside a \url{} command, as shown in my MWE, the following is displayed. (Below is what I am expecting). \documentclass[a4paper]{article} \usepackage[T1]{fontenc} ...
1
vote
1answer
27 views

How to add shortcut to slide of contents in beamer?

I need to have shortcut on every slide to the content slide, which is located in the end of the presentation. I was trying to do this: \documentclass{beamer} \usepackage{hyperref} \makeatletter ...
1
vote
1answer
29 views

IEEEtran class, conference option and pdfusetitle in hyperref

Consider the following: \documentclass[conference]{IEEEtran} \usepackage %[pdfusetitle] {hyperref} \begin{document} \title{A simple test} \author{ \IEEEauthorblockN{Michael Shell} ...
1
vote
1answer
26 views

Bookmarks under List of Figures

I want to automatically generate bookmarks under List of Figures. The code below adds bookmark for each Figure (which is good), but I fail to also automatically generate the same bookmarks under List ...
4
votes
1answer
39 views

How do I disable the theorem counter for \autoref when using an extended theorem name?

I’m writing a paper, and I need to quote a theorem by a mathematician whom we’ll call Genius. This theorem already goes by a well-known name, say Genius’ Special Theorem. I’d like to cite this theorem ...
1
vote
1answer
23 views

Using \href inside \footnote

Somehow, the following code is not compiling: \documentclass[10pt,a4paper]{article} \usepackage{hyperref} \usepackage{xcolor} \definecolor{medium-blue}{rgb}{0,0,1} \hypersetup{colorlinks, ...
1
vote
1answer
35 views

Problems with \nameref{} not refering to the correct label x titlesec

I'm using hyperref package to do cross-referencing, but I'm encountering some problems and it is related to \usepackage{titlesec,titleps} , for instance: \documentclass[a4paper,12pt,twoside]{report} ...
2
votes
1answer
47 views

Follow href on frame change

I want to give a Latex Beamer Presentation and it includes presenting some matlab code. I found out how to run a shell script with an href-link, but this includes clicking on something which is quite ...
1
vote
1answer
26 views

Problems with making clickable linkt to web in beamer

I have (on windows with latest miktex) a beamer presentation where I want to make a clickable web link, twice. It works in one case, not in the other: This case works as expected: ...
1
vote
0answers
26 views

Link to crossref in bibliography

Is there any way to make link in the bibliography to cross-references ? Consider the following MWE: \documentclass{article} \usepackage{hyperref} \usepackage[backend=bibtex8]{biblatex} ...
2
votes
1answer
58 views

Fine-grained control of sectioning numbers displayed in TOC?

I'm writing a book, and I would like to have (relatively?) fine-grained control of what numbers are printed in the TOC. No numbers printed for chapters, only their names. Section numbers printed for ...
2
votes
1answer
77 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 ...
0
votes
0answers
17 views

Can I put other beamers and files in links of a beamer?

I want to make a presentation where I alternate between five beamers and a pdf file. Is it possible to have one master beamer with hyper links to the other four beamers and the pdf file?
5
votes
3answers
41 views

Cross-reference two numbered environments

Consider the following code: \documentclass[a4paper,12pt]{book} \usepackage{amsthm} \usepackage{hyperref} \theoremstyle{plain} \newtheorem{exercise}{Exercise} \newtheorem{solution}{Solution} ...
4
votes
1answer
46 views

Incorrect reference when combining amsmath, hyperref, and \tag

In the following MWE, I receive a warning and a reference points to the wrong element. \documentclass{article} \usepackage{hyperref} \usepackage{amsmath} \begin{document} \begin{equation} ...
2
votes
0answers
48 views

Error in hyperref package

I'm trying to color all links by using this option: \usepackage[colorlinks=true,allcolors=blue,breaklinks,draft=false]{hyperref} When compiling my .tex file, I get the error Package keyval ...
1
vote
1answer
22 views

Using scalebox with href inside or how to scale a hyperlink

If I use scalebox with href, (as in \scalebox{0.5}{\href{mailto:someone}{shown mail address}}), then the hyperlink is not clickable anymore (meaning I can’t click on the shown mail address to mail to ...
2
votes
1answer
46 views

How to customize links on writelatex.com?

In order to make links visible in my CV, I'm trying to add following : \hypersetup{ unicode=true, % non-Latin characters in Acrobat’s bookmarks linkcolor=red, % color of ...
3
votes
1answer
40 views

itemize environment inside theorem

When I have an itemize environment inside a theorem and refer to the theorem later on, the document doesn't point to the right location. For example, consider the following toy example: ...
0
votes
0answers
18 views

Linking the table of content and references and citations to the corresponding place

I am writing my thesis. I would like each of the reference I cite to be linked to the place where it actually appears in the thesis. An Example The theory was presented by Einstein et. ...
0
votes
2answers
33 views

Any amsalpha-like style in Biblatex?

Did anyone know is there a way to set style for biblatex? I would like a way to backref the cited page with linkedin hyperref, it seems that the Biblatex can do this, but the style is quite ugly!!! ...
6
votes
1answer
47 views

Why hyperref's \url may be used in preamble within a macro but not within a box?

The following MWE, where a macro involving hyperref's \url is defined in the preamble, works like a charm: \documentclass{article} \usepackage{hyperref} % ...
4
votes
0answers
58 views

Hyperlink from footnote mark to footnote body

When I click on a footnote mark in the PDF, it doesn't take me to the body of the footnote, but rather to the first page of the document. I've heeded the advice at Why are all of my footnotes ...
1
vote
0answers
20 views

LyX XeTeX and hyperref error hline

I have a main LyX document with a number of child documents, which have English, Hebrew and Greek text. On compilation, I get an error: ! Undefined control sequence. <argument> \@currentHref ...
0
votes
0answers
32 views

\paragraph inexplicably turns into clickable link

I have a weird LaTeX problem. When inserting the \ref{} link to the \subparagraph flagged as "crucial line" in the following MWE, the preceding \paragraph headline inexplicably turns into a clickable ...
3
votes
1answer
51 views

can't \hyperlink{\includepdf

I'm making a image grid that links to pdfs. I want the pdf to link to the image too. Neither the hypertarget to the image nor the hyperlink to the pdf work. Are there any jump to page instructions ...
0
votes
0answers
17 views

using hyperref, change chapter to section in ToC

I would like to change the level in the PDF bookmarks using hyperref of some entries in the appedix. In my appendix I have several chapters, the first one being "appendix" and then some more... In ...
10
votes
1answer
112 views

Why can't I expand \ref*{} as a string?

In the following code, if you change \def to \edef the code crashes. Nor can you perform normal string operations or tests. Removing hyperref (and replacing \ref* with \ref) works fine with \edef. ...
0
votes
0answers
29 views

Having a problem generating a command that make chapter and label in one line

I'm writing my thesis, modifying the ezthesis template. I did a new command that mix chapter and label in one line. \newcommand{\chaptercolored}[2]{\textcolor{colorchap}{\chapter{\textbf{#2}}}% ...
1
vote
0answers
24 views

Problem with citation in \thanks using amsart and hyperref with pagebackref

I'm writing a paper using amsart and the pagebackref option of hyperref. I want to use the \thanks command to acknowledge someone for pointing me to a specific reference. But I get an error. ...
2
votes
2answers
24 views

Bookmarks to the second part leads to the wrong page (page of the first part)

The bookmark/link in PDF to the second part ("Quels impacts ?") leads to the wrong page (one early). This is also true for the ToC in the PDF (the page number here is correct, just the hyperlink is ...
0
votes
0answers
18 views

How to hyperlink to files relative to the current file with hyperref?

I cannot get relative links to files to work when using: \usepackage[pdftex]{hyperref} I can only get the following to work: /href{file://full-path/filename}{text} I have tried the following ...