The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [hyperref]

{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}.

Filter by
Sorted by
Tagged with
-1
votes
1answer
32 views

Incompatibility between rotfloat and hyperref?

Latex is creating a blank page before a sideways table. Initially, I thought this was a problem with sideways table (see Landscape mode causes a blankpage). Indeed the blank page goes away if I use ...
8
votes
1answer
723 views

How can I stop this useless empty line popping up in the middle of my lists?

My custom enumerateoptional enumitem environment is putting a useless empty line in the middle of my enumeration list. To reproduce this, you need to fill a line 100%. See this example I extracted ...
-1
votes
1answer
22 views

Argument of \bbl@tempd has an extra }

This only throws the error when running it with TexLive 2017 on Debian 9. If I run the same example on Windows 10 with MikTex, everything works fine: \PassOptionsToPackage{main=brazil,english,spanish,...
0
votes
2answers
22 views

Creating a link to a specific page of another pdf file

I tried to look at answers about package hyperref but I didn't find anything that allows me to add the full file path. I am using abode acrobat reader. Does is work with hyperref? what is the syntax ...
0
votes
1answer
33 views

Using \Acrobatmenu{GoBack} with bibtex

This question is a follow-on from https://tex.stackexchange.com/questions/512820/placement-of-acrobatmenugoback-in-hyperref. I am writing a document with many hyperlinks between the text and Figures, ...
0
votes
1answer
29 views

Placement of `\Acrobatmenu{GoBack}{}` in `\hyperref`

I have a rather complicated LaTeX document with many figures, tables and citation links provided courtesy of \hyperref. I would like to provide a "back" button from these document items using the ...
0
votes
1answer
38 views

How to define commands before loading the `hyperref` package, which is loaded by my document class?

On the question Missing number, treated as zero when renewing enumerate \item and using hyperref I learned I have to define my custom commands from the question How to recognize the enumerate ...
0
votes
0answers
20 views

Add "http:// in default href macros

Below link works only for adding "http://" or "https://", how do I store "http://" or "https://" in the default \href macros when "http:" is not in the url link parameter for \href{}, url package ...
1
vote
0answers
24 views

Missing number, treated as zero when renewing enumerate \item and using hyperref [duplicate]

When I tried to integrate the answer for my question How to recognize the enumerate shortlabels in my custom environment? on my thesis document, latex throwed this error: main.tex:26: Missing number, ...
0
votes
0answers
21 views

How do I get hyperref to play with expex and so getref is hyperlinked to the deftag

How do I get hyperref to allow me to link to individual examples created using expex (https://www.ctan.org/pkg/expex). I am aware of a \label based workaround, however my full document has too many ...
1
vote
1answer
36 views

Reference for \newlabel

In this question it is mentioned that hyperref overwrites \newlabel and therefore if one loads the package it requires six (rather than two) arguments. I was trying to learn the syntax of \newlabel, ...
2
votes
1answer
26 views

warning when using caption with hyperref's localanchorname option

The MWE below gives a warning: "warning (pdf backend): ignoring duplicate destination with the name 'section.1'". The warning disappears when commenting out either the option "localanchorname" or \...
0
votes
0answers
14 views

Hyperlinking to the next page

Here's an offshoot of this post to get the 'next page'. Unfortunately the borrowed code does not behave as claimed (if I understood it correctly). \documentclass{report} \usepackage{refcount} \...
1
vote
1answer
75 views

Enumitem with hyperref's \nameref, in complex environments

I provide this pre-amble of my main desired output, having been told that my below approach is inherently misguided (due to \nameref not being designed or able to obtain only a numeral, instead of a ...
0
votes
0answers
20 views

How can we display section name AND its number in a simple way?

How can we set display section name AND its number in a simple way in Latex? e.g. Chapter 2 reviews ..... \chapter{Basics of continuum mechanics\label{ch:capitel2}} Wish effects in the attachment ...
0
votes
1answer
19 views

Conflict of hyperref with \addtocounter

For some reasons, I need to define the captions before the tables with the help of the capt-of package. When I am trying to use the hyperref package, a conflict occurs with \addtocounter and the ...
0
votes
1answer
29 views

Add metadata to XeLaTeX PDFs without using hyperref

When using pdflatex, it is possible to add metadata to PDFs without using the hyperref package: \documentclass{article} \pdfinfo{ /Title (My very first paper) /Author (Gary Gnu) } \begin{document}...
0
votes
1answer
17 views

Passing options to hyperref via Beamer from Pandoc

If I were writing LaTeX code directly, I could pass options to hyperref via beamer: \usepackage[dvipsnames,hyperref={colorlinks=true,linkcolor=black,urlcolor=blue}]{beamer} but I'm not using LaTeX ...
0
votes
0answers
27 views

hyperreferencing \hat, \tilde and other math accents

I am unsuccessfully trying to have variants of the macros: \hat, \tilde, \check, \grave, ... such that the accent is possibly clickable and gives a link to some other part of the document (using \...
0
votes
1answer
73 views

The error occurred after the last update

After latest update of TeXLive2019 I get an error with my code, thet previously worked fine. I associate this error with the latest update, possible some conflict of hyperref and answers packages, or ...
3
votes
1answer
36 views

How to define a new hyperref for Functions?

My question relates to here. I am trying to define new commands for hyperref. For example, I want to have some equations to be called: Function, Constraint, or Constraint Set. To do it, I tried to ...
3
votes
1answer
34 views

hyperref and repeating things counted by `\refstepcounter`

I try to write document, using hyperref package, which has elements of sectioning repeated several times with the same number. These things are counted by \refstepcounter. In the example document I ...
1
vote
1answer
57 views

Algorithmic and hyperref packages: strange interaction

I am not sure the bug below has already been reported as I cannot find clear information online. See the MWE: if \usepackage{hyperref} is not commented, the space below the equation is fairly large, ...
1
vote
2answers
28 views

Filtering hyperref warning

In the code below, I'd like to silence the hyperref warning that complains about skipping the level chapter between part and section. \documentclass{book} \usepackage{hyperref} \usepackage{silence} \...
0
votes
0answers
56 views

Bold and multi-page index numbering won't work for some entries

I’m trying to follow this example to combine bold and multi-page index numbering, but it’s not working for all my index entries. Although it’s working for most entries, I won’t get any bold for some ...
2
votes
1answer
30 views

Print something on the main text to the begining

I want to make something on the main text show on the first line of the first page, i.e. before the main text. Here is an example with some integer as the main text. In particular, I want to show z = ...
1
vote
1answer
27 views

How to link from a browser to a specific section of document using hyperref?

Hyperref automatically generates bookmarks for document divisions (part, chapter, section) in the PDF output. When opening a document with a browser we can use anchor syntax to link to a specific page ...
0
votes
1answer
22 views

Make “property” countable as theorem or lemma

I need to reference some text in a itemized list. If I label the item and then referencing it, will appear in the result document a link to the closest section. If I label the item and then "...
2
votes
2answers
50 views

pdfx + hyperref prevents setting PDF metadata [incompatible packages]

Edit: Apparently hyperxmp and pdfx are incompatible. I'm using the pdfx, and then \hypersetup and the hyperxmp package to set metadata as I like. I've run into two issues. The metadata doesn't seem ...
0
votes
1answer
34 views

Interactive rectangles when clicking or hovering

This is my bibliography: When you click the link, it makes this color: The table of contents also does this. What is this functionality? How can I change the colors?
0
votes
0answers
18 views

How can I get a ToC to show colored rectangles when clicked upon them?

The situation I've done a simple ToC: When you click it, it redirects to the page, and shows a blue rectangle: The issue I don't know why this happens. I have currently two windows opened in ...
0
votes
1answer
24 views

Fancyhdr and hyperref - unwanted space before header

I'm writing a report in french. I'm using hyperref's autoref for cross-references and I have redefined some of the names used by the function, such as Appendix and Figure, in my preamble. I just ...
1
vote
1answer
16 views

Using \autoref in IEEE article templates

I'm writing an article in the IEEE conference template. In the instructions to the use of this template, is written that equations must be referenced in the text as for exemple: "(1)", and figures as "...
1
vote
0answers
27 views

How to create a fillable PDF in table format from MS word using Overleaf

I am looking to create a fillable PDF for a response sheet in table format as shown below. This is screenshot of how the response sheet looks like and I can't seem to find a way to enable people to ...
0
votes
1answer
28 views

Changing appearance of hyperlinks locally

The code below is borrowed from this post. Sol #1: I expected foo to be highlighted, it isn't. Since I want the change to be local anyway, how would I restore the defaults? \documentclass[oneside,...
2
votes
1answer
26 views

glossaries - hyperlink to custom label

Is there any way of getting a glossary hyperlink to link to a custom label instead of the glossary entry? MWE: \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage[debug=...
1
vote
1answer
28 views

How to link to back cover?

This is a follow up to this post. I'd like to refer to the backcover. What I tried failed: \documentclass[oneside]{scrbook} \usepackage{afterpage} \usepackage{keyfloat} \usepackage{graphicx} \...
0
votes
0answers
13 views

Hyperref - get autoref to hyperlink to top of figure with a margin caption

Normally, with the caption command within the figure environment, references to figures hyperlinks to the top of the figure instead of the top of the caption. However, with a margin caption, ...
1
vote
0answers
40 views

Moving the hyperref target of a footnote up a few mm

In my free physics book, clicking on a footnote symbol in the text of the final pdf always leads to the second line of the footnote. One thus misses the first line of the footnote. This occurs all ...
0
votes
1answer
27 views

\href is not working only with image

\href{https://google.com}{\includegraphics[scale=0.05]{logo.png}} - not working \href{https://google.com}{\includegraphics[scale=0.05]{logo.png}someTextHere} - working How to make it work only with ...
0
votes
1answer
14 views

Broken links to appendix with jmlr2e.sty package

I am writing a LaTex document using the jmlr2e.sty package. In the main text I want to refer to the Appendix using links. On the pdf when I click on the links they redirect me to the current section ...
1
vote
1answer
16 views

How to make \footnotemark color change?

MWE \documentclass[a5paper,11pt]{report} \usepackage{color} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \hypersetup{% colorlinks=true, citecolor=blue, linkcolor=blue, ...
1
vote
0answers
47 views

Wrong link to appendix because of redefining appendix command

I adopted @Mico 's solution in here to determine the singular or plural form of Appendix in the ToC based on the number of sections in the appendix part. It works well for this purpose. However, I ...
1
vote
0answers
37 views

Why `\crefname` command generates error?

Does anybody know why \crefname{thm}{AAAA}{AAAAs} command generates error? \documentclass{article} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[...
1
vote
1answer
40 views

Nested bookmark in the PDF because of redefining appendix command

I adopted @Mico 's solution in here to determine the singular or plural form of Appendix in the ToC based on the number of sections in the appendix part. However, I find that the solution has a side ...
0
votes
0answers
22 views

Creating a bracket [] macro for \ref when using hyperref

I've been trying to add brackets around cross-references in a more automatic manner in my recent report, but haven't been able to do so just yet. A simple \newcommand-macro does not seem to work. I've ...
3
votes
2answers
49 views

Hyperref + Silence + inline maths, doesn't compile

Issue Document compilation hangs when \( ... \) in section title etc. if both hyperref and silence are loaded. MWE \documentclass{article} \usepackage{silence} \usepackage{hyperref} \title{Title} ...
4
votes
1answer
114 views

How to link subtables to a tabular

This was intended to be an answer to this question. OTOH, it might be possible to improve upon it using eforms or better \href options. The idea is to first create a PDF file containing the ...
1
vote
1answer
16 views

Change text of broken autoref references

I would like to replace the ?? displayed when autoref cannot find a reference with a custom text, for example full paper (that way when the theorem is not present it just points to the full paper) or \...
0
votes
0answers
20 views

user defined URL style will not break onto the next line like in \url hyperref

I am trying to get a URL link to break like when you use \url but I have defined my own as I wanted it to be underlined in a specific way but now it will not match the text width. This is my code: %...