{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

0
votes
0answers
15 views

Theorem does not work after MikTeX update; no counter defined [duplicate]

The following stopped working after I updated MikTeX today: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{definition_}[equation]{...
0
votes
1answer
25 views

Math symbols in .pdf bookmarks tab don't displaying correctly

I am using the commands \usepackage{hyperref} \hypersetup{pdftex,colorlinks=true,allcolors=black} \usepackage{hypcap} to create clickable links in the index and references, and also to ...
2
votes
1answer
31 views

How do I use intersentence spacing in chapter/section names with hyperref?

I use Vim + vimtex + latexmk + xelatex. When using an acronym in a chapter name, Vim brings up this lint: Intersentence spacing (`\@') should perhaps be used. MWE: \documentclass{report} \...
1
vote
0answers
30 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
31 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
0answers
41 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: ! ...
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 ...
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
71 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
65 views

Recovering red box for hyperlink [closed]

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
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 ...
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!...
3
votes
0answers
35 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
56 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, ...
12
votes
1answer
180 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 ...
2
votes
0answers
32 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} \...
6
votes
1answer
34 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
28 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/...
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: ...
1
vote
1answer
26 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 ...
8
votes
2answers
124 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 ...
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
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 ...
1
vote
0answers
34 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 ...
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 ...
3
votes
1answer
33 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 ...
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 ...
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, ...
4
votes
1answer
41 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} ...
2
votes
1answer
43 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 ...
0
votes
1answer
29 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
57 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 ...
1
vote
1answer
29 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
40 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
0answers
38 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 ...
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, ...
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{...
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 ...
1
vote
2answers
63 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 ...
5
votes
5answers
159 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 ...
2
votes
2answers
129 views

How to be able to use the number sign (#) in the URL of an underlined href

This question is very brief: how to be able to use the number sign (#) in the URL of an underlined href? \documentclass{article} \usepackage{hyperref} \begin{document} 1 (without \#, link, ...
1
vote
1answer
74 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 ...
4
votes
1answer
76 views

Why does \usepackage{amsmath} break \hyperref in \textnormal?

In the following sample, the second link isn't hyperlinked: \documentclass{article} \usepackage{amsmath} % Removing this makes the second link work \usepackage{hyperref} \begin{document} \...
5
votes
1answer
68 views

pdfTeX warning (ext4): destination with the same identifier (name{choice.1}) has been already used, duplicate ignored

when compiling the following document: \documentclass[11pt]{exam} \usepackage{amsmath,amsbsy,amssymb,amsthm,cases,blkarray,mathrsfs,amsrefs,amsfonts,latexsym} \usepackage{enumerate,enumitem,textcomp,...
4
votes
1answer
50 views

Hyperref referring to the wrong label

I have this code in LaTeX and I am dealing with some dynamic work with labels and references. This code works - first reference references to the first text and second to the second but I want to ...