{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

7
votes
2answers
573 views

Modifying \autoref to behave (somewhat) like \vref

I would like to modify the \autoref command in the following way: if the \autoref command and the label are on the same page, it behaves like \autoref* (i.e., no hyperlink). Else, it behaves usually. ...
1
vote
0answers
25 views

hyperlink within caption to a figure

I'm getting an error message when I include a \hyperlink command inside the caption argument for a figure. It's a simple \hyperlink{<targetname>}{<text>} invocation. It produces two ...
0
votes
0answers
29 views

Clickable table of contents and non-clickable equation references?

I know that the hyperref package provides a clickable table of content and clickable equation references. How can I have clickable table of contents and non-clickable equation references ...
1
vote
1answer
73 views

directed to middle of page instead of start

I'd like to include some pdfs in my file and make a table of contents with hyperlinks to the individual pages. I almost got it to work with \phantomsection and \addcontentsline however if i click the ...
3
votes
1answer
27 views

Compile error with \href ToC and \apacite

I would like to edit my document but I have a compile error somewhere between the \href and the apacite but can't locate it. I've tried blocking out code and taking out references, with varying ...
11
votes
1answer
164 views

texlive 2016 hyperref/cleverref incompatibility

I almost always use ShareLaTeX for my LaTeX needs, but I recently began work on a relatively large document, and so I figured I would give a local TeX distribution a try to see if I could speed up the ...
1
vote
0answers
40 views

Tex Live 2016 bug: “! LaTeX Error: No counter 'd' defined.” [duplicate]

I have a file which compiles fine with TeX Live 2015, but which bugs on TeX Live 2016. When compiling with TeX Live 2016, (after I clean up all the non-source files) I get the following error: ! ...
2
votes
0answers
36 views

Change formatting of an element in ChoiceMenu

Is there anyway to change color in the \ChoiceMenu items such as Item 1, Item 2, etc.? Or even bolding individual choices would work... I tried \textbf{Item 1} and \color{blue}{Item 1} and they both ...
3
votes
2answers
70 views

Use \nameref to refer to unnumbered section but allow short titles

I'd like to refer to an unnumbered \section* which in general just makes sense in combination with \nameref. However I'd like to define a short title for the section I can refer to, but \section[...
2
votes
1answer
64 views

Recovering red box for hyperlink [on hold]

Somehow I managed to accidentally remove the red boxes surrounding hyperlink. All I am doing is \usepackage{hyperref}. How do I recover the boxes? I realize this is a bit of an ironic question ...
4
votes
2answers
33 views

Referencing named tcbtheorems

My objective is exactly the same as in this question, however, I would like to achieve this same effect with \newtcbtheorem from the tcolorbox package. For example \documentclass{article} \...
0
votes
1answer
34 views

Cross-reference and tikzpicture conflict?

When I Include this diagram to my memoir document % Requires \usetikzlibrary{shadows,positioning,backgrounds} \centering \begin{tikzpicture}[x=11.8mm,y=8mm] % some colors \colorlet{even}{cyan!60!...
9
votes
2answers
66 views

Inline links in code listings

I would like to include links inside source code listings by providing URLs within the listing source text. That is, I would like to be able to generate something that looks like the following: ...
0
votes
1answer
41 views

Cannot reproduce the following solution to the problem of \ref not working for \label inside \subbottom in 'memoir'

It seems that using \label inside \subbottom causes known problems inside the 'memoir' class of documents. Although I already solved the problem, I was stumped by the fact that I cannot reproduce one ...
3
votes
0answers
31 views

Hyperref with Pdfcomment

I'm using the below code to get hyperlink with bookmarks \documentclass{article} \usepackage[dvips,breaklinks,unicode,bookmarksopen=true,bookmarksnumbered=true,bookmarksopenlevel=3,pdfstartview={...
3
votes
2answers
54 views

How can I create multiple checkboxes next to each other?

I have been able to create interactive checkboxes using the following code by using the \CheckBox{....}\\ However I'm currently stuck and can't figure out to create multiple boxes next to each other, ...
2
votes
0answers
29 views

How to make hyperlinks in bibliography without showing URL

This is my MWE: \documentclass{article} \usepackage{lipsum} \usepackage{natbib} \usepackage{bibentry} \usepackage{color} \usepackage{hyperref} % For hyperlinks in the PDF \hypersetup{colorlinks=...
1
vote
0answers
18 views

Including brackets in citation hyperlinks

How do I include the whole citation, also the brackets, in my citation, so they become blue and works as a hyperlink as well in natbib. This is a MWE: \documentclass{article} \usepackage{lipsum} \...
2
votes
1answer
38 views

TOC, Chapter Toc, and Appendix misfunctions

The attached image shows the problems in an almost MWE: In TOC, the appendices are called Chapter instead of Appendix Much worse is that the sections in the Appendices find their way in the Chapter ...
6
votes
1answer
31 views

TOC depth and issue with bookmarks

I am experiencing a trouble when compiling my PDF file. I am using MiKTeX 2.9 and Texmaker (PDFLaTeX) to get the file. I have the following MWE : \documentclass[11pt]{article} \usepackage[left=2cm,...
2
votes
1answer
25 views

changing color when lemma or theorem is cross-referenced

So, using hyperref I know how to change the color of "1" to blue when I say "using Theorem 1". But I want the entire "Theorem 1" to be blue. Similarly when I recall a lemma/theorem/proposition/...
8
votes
2answers
121 views

How can I redefine \autoref?

I am redefining a few things to support unique references in multilingual documents such that labels must only be unique within a given locale from the users perspective (obviously they must always be ...
1
vote
1answer
25 views

How do I shift all the TOC references one page forward?

I have the page numbering starting on page 2, which is labeled in the PDF as page 1. Therefore, 'Section A' falls on page 2, but the TOC sees it as page 1, and thus sends me to page 1 rather than page ...
6
votes
2answers
113 views

How to selectively turn off hyperref for some cross-references defined by \ref?

I have defined a command (\dingbatise) that converts a string of characters into one of dingbats. It works with \ref: \documentclass{article} % For clickable refs: % \usepackage{hyperref} % For ...
3
votes
1answer
25 views

acro: show long acronym name in PDF bookmark

I am using the package acro. I have the following acronym: \DeclareAcronym{SDP}{ short = SDP, long = Sequential Decision Process, long-plural-form = Sequential Decision Processes, class = ...
1
vote
0answers
33 views

Using Hyperref in LyX - PDFLaTeX Hebrew

In the past year or so I have been using LyX in Hebrew with the Hebrew Article document class, with the PDFLaTeX format. Lately I found the Hyperref package, and with a single click all non-Hebrew ...
1
vote
0answers
28 views

Cross-referencing page numbers between two documents

I have two documents which I will subsequently merge (i.e. I will merge .pdf’s). In order to do that I have two issues to resolve, both have to do with cross-referencing. First, I use firstpage and ...
0
votes
1answer
28 views

How can I make hyperref with “bookmarksnumbered=true” number the parts in conjunction with classicthesis?

I am using classicthesis. If I pass bookmarksnumbered=true to hyperref, everything but the parts is numbered nicely in the PDF bookmarks. However, I would like to see the parts numbered in the same ...
1
vote
2answers
43 views

Why does a new page disrupt \hypersetup, and is there a workaround?

There is some strange behavior with new pages (thanks to David Carlisle for noting that it is is not only \clearpage) in that disrupts the ability to \hypersetup later in the document. I generate my ...
19
votes
2answers
2k views

Hyperref Link Spans a Pagebreak, Looks Ugly

I'm using hyperref for links in pdflatex and I have the following problem: when a bibliography citation spans across a page-break (which usually occurs with long author names), then an additional ...
0
votes
1answer
100 views

Conflict of backrefalt for bibliographies at end of each chapter (using natbib and chapterbib)

I want to have the bibliographies at end of each chapter and still have the cross-reference on the reference list stating "Cited on pages:" using natbib and chapterbib packages. To compile the ...
0
votes
1answer
30 views

Redirect citation link to custom location

I am writing a thesis with appended papers which I include using the pdfpages package. I am using biblatex for referencing and hyperref for hyperlinks. In order to refer to the papers in the thesis, ...
3
votes
1answer
30 views

autoref for algorithms

\usepackage{algorithm,algpseudocode} \usepackage{hyperref} So when I \begin{algorithm} \caption{Baseline}\label{ALG_baseline} \begin{algorithmic}[1] ... \end{algorithmic} \end{algorithm} the ...
60
votes
1answer
40k views

options for appearance of links in hyperref

If I use \usepackage[colorlinks]{hyperref} I get colored links for \cite (not good for printing or even viewing) but table of content looks fine. If I use \usepackage[colorlinks=false]{...
4
votes
1answer
40 views

% and non-ASCII characters in headings

It appears that a % together with some non-ASCII characters on a heading is causing problems for hyperref in xelatex. Here's a minimal working example: \documentclass[]{article} \usepackage{hyperref} ...
0
votes
1answer
26 views

Inserting hyperlink in CV

I am making a CV on Overleaf and and under one section I want to insert a hyperlink. But when I try out \hyperref it gives an error as LaTeX Error: Can be used only in preamble. Here's the ...
1
vote
1answer
55 views

I need some help ordering these imports so the hyperref package works properly

I am writting my first Latex document. My document is now 140 pages long and I thought that making the table of contents clickable would be a good idea. I use ShareLatex to compile my code. I imported ...
0
votes
1answer
33 views

How to add a reference?

The package \usepackage[bookmarks=true]{hyperref} Doesn't work to create a colored reference on my note. The template I am using is this one \documentclass[11pt,twoside,openany,x11names,svgnames]{...
4
votes
1answer
24 views

Is it possible to get both pdf bookmarks and hyperref for index links?

I loaded both the bookmark and hyperref package, but when I have them both the index links don't work. When I comment out the bookmark package the index links work, but the bookmarks don't. How do I ...
4
votes
1answer
1k views

Mouseover with Hyperref Internal Links

I have a PDF that is heavily internally linked. (I use terms and link them to the appendix definition with \term{termname}{displaytext}, which uses \hyperlink from the hyperref package.) I'm trying to ...
1
vote
1answer
28 views

How to use normal label within a custom command for a definition of hypertarget?

I want to make a command that defines a \hypertarget with the target label (first argument of \hypertarget) by the contained \label and the target caption (second argument of \hypertarget) by its ...
2
votes
2answers
34 views

How to achieve custom paragraph (or in general section) numbering and allow references?

I used the command getcurrentref from this question/answer to achieve a custom numbering when \paragraph is used. I wrapped it into the macro: \newcommand\mybook[1]{\paragraph{B \getcurrentref{...
2
votes
1answer
39 views

tex4ht removes spaces in href description in LUA mode when using mathdesign package

Any idea why this MWE \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath,mathtools} \usepackage[bitstream-charter]{mathdesign} \usepackage[utf8]{inputenc} %DO NOT USE WIT LUALATEX, ...
2
votes
0answers
37 views

How to reference sections in other chapters mentioning the chapter?

I have an article class document with a structure like this. Part A Section 1 Section 2 Part B Section 1 Section 2 I want to reference Section 1 in part A from Section 2 in part B. When I ...
0
votes
0answers
18 views

Coloring citations in the text

(possible duplicate) hi, i try to color my citations using hyperref package. here is my preamble: \usepackage{geometry} \usepackage{setspace,scrextend,sectsty,microtype,endnotes,xcolor} \usepackage{...
1
vote
2answers
61 views

How can I manually create a hidden bookmark (PDF anchor)?

I would like to create invisible bookmarks/anchor points in my PDF. I want something like \pdfbookmark but with an invisible parameter. Does this exist? After experiments and reading, I determined ...
4
votes
1answer
33 views

How to use \nameref on a element of a tocloft custom list?

I am using the tocloft package to create a new list "question" and I would like to use \nameref (from the \hyperref package) to manually list questions (not using \listofquestion) at some point in my ...
2
votes
1answer
35 views

Create PDF bookmarks automatically with ntheorem

Is it possible to automatically create PDF bookmarks with ntheorem's headers? Example: \documentclass[a4paper]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[hyperref]{...
5
votes
5answers
156 views

How to style href's (underlined and coloured) throughout the document

Let's take the following MWE: \documentclass{article} \usepackage{hyperref,xcolor} \begin{document} \href{http://any-URL}{\color{blue}{\underline{Some URL}}} \end{document} Let's assume I would ...