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
5 votes
2 answers
79 views

Shorten links in URL

I have seen this, but biblatex is used there, I don't use that in my case. Is there a way for me to do: \url{https://example.tld/example/something/} Or, if it's possible, maybe even: \url{https://www....
user avatar
  • 127
1 vote
0 answers
29 views

\hypertarget changes pdfview locally

How can I change the behavior of PDF view for only one \hypertarget, but others should stay unchanged. I'm trying to make a link to the text, but I want exactly this link not to change X position of ...
user avatar
  • 1,883
0 votes
0 answers
5 views

how to jump to a whole frame in beamer

I try to use \hyperlink command to jump between frames, while it's not like the kind of jump as in the tableofcontents. I want to jump to an entire frame, not in the middle of a frame. Can anyone help ...
user avatar
2 votes
0 answers
22 views

Conflict with hyperref's draft option, cleveref's \cref and... \textbf in \caption

The following MCE compiles like a charm. \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \hypersetup{draft} \begin{document} \begin{figure} \caption{% foo% % \textbf{...
user avatar
0 votes
1 answer
31 views

Hyperref with internal link toward bib url entry

When using the hypperref package, with the \citet{} commandline from natbib, the internal link send to the bibliography at the end of the document. Is there anyway to configure hyperref or natbib such ...
user avatar
2 votes
2 answers
76 views

Hyperlink occurs empty space also for Centered text

Using LuaLaTeX, I am getting hyperlink anchors in unwanted places, shown in the MWE (PDFLaTeX, XeLaTeX produces prompt output). I only want the actual text to function as an anchor, not the ...
user avatar
  • 1,218
0 votes
0 answers
25 views

LaTeX package error: Conflict between siunitx rounding precision and hyperref

I want to round numbers in my tables and have content for my document. However, when I typeset the MWE \documentclass{article} \usepackage{siunitx} \usepackage{hyperref} \usepackage{xifthen} \sisetup{...
user avatar
  • 1
0 votes
0 answers
23 views

hyperref and \addcontentsline's patch in expl3 block

I want to patch \addcontentsline command for changing \thepage to \thechapter--\thepage. However I found that things went wrong when I used expl block: \documentclass{book} \usepackage{etoolbox} % \...
user avatar
  • 1,119
0 votes
1 answer
12 views

Default value of hyperref's pdfborderstyle setting

I have a document where I want to use underlined PDF hyperlinks for the most part, but in one certain part, I need boxed PDF hyperlinks again. I know that \hypersetup{pdfborderstyle={/S/U/W 1}} causes ...
user avatar
  • 273
0 votes
0 answers
25 views

Named Equations with cleveref

I have a strange problem, where using a tag with an equation creates a warning (that obviously later leads to some unwanted behavior, though not in the context of this question) I use to import two ...
user avatar
  • 367
1 vote
1 answer
20 views

How to add a downloadable .zip link to Overleaf using documentclass Report?

.zip have to be added to a chapter: \begin{document} ..... \chapter{Datasheet}\label{ch:attachment_B}{ \href{file.zip}{Click t download}. } \end{document} packages used at the top: \...
user avatar
  • 13
0 votes
1 answer
31 views

Named boxes with links compatibility

I'm using xsavebox package for saving and using named boxes (I want the boxes to have names like X.1.3) and I want to make links to these boxes but they are not compatible with any kind of referencing....
user avatar
0 votes
1 answer
47 views

How can I align 4 equations in a 2 by 2 layout while having them separately numbered?

I have four equations that I want to present in a 2 by 2 layout. I found this thread, but I would like to be able to \cref each equation separately and have them numbered like in this image below but ...
user avatar
0 votes
0 answers
12 views

Making all ToC entries uppercase with memoir class & hyperref

I need to update my organization's style file to make it hyperref-compatible. It uses the memoir class and requires all of the table of contents entries to be in all-caps: Per Lowercase TOC with ...
user avatar
  • 133
1 vote
1 answer
27 views

\pdfstringdefDisableCommands with starred and non starred commands

The following MCE: \documentclass{article} \usepackage{hyperref} \ExplSyntaxOn \NewDocumentCommand { \foo } { s m } { \IfBooleanTF {#1}{ Foo~ #2 }{ #2 } } \pdfstringdefDisableCommands{ ...
user avatar
4 votes
1 answer
149 views

Unexpected table/figure reference

Code Consider the follwing example: \documentclass[danish]{article} \usepackage{polyglossia} \setdefaultlanguage{danish} \usepackage[demo]{graphicx} \usepackage{booktabs} \usepackage{floatrow} \...
user avatar
0 votes
0 answers
32 views

How can I get pop-ups with the explanation when I have the mouse pointer on an acronym or citation

More and more texts are nowadays published electronically. In such electronic publications, an explanation may pop up when the mouse hovers on a text, like the page-previews on Wikipedia or the name ...
user avatar
0 votes
1 answer
21 views

Hyperref from document to the page of Table of Abbreviations

I am creating a glossary in a big document using \printnoidxglossaries. At some point, in the document I want to mention "The abbreviations can be found in \ref{abbrs}". However, if I try to ...
user avatar
  • 21
1 vote
0 answers
31 views

Bookmarks lead to wrong section/page

I am new to LaTeX. I am currently writing my thesis with overleaf, and for some reason, the bookmarks generated automatically do not lead to the corresponding section. Here are a few major differences ...
user avatar
0 votes
0 answers
19 views

How to remove the hyperlink at chapter number (or add the hyperlink at section number) when using tocloft and hyperref

When I am using the packages of tocloft and hyperref, in the Table of Contents, the hyperlink will appear at the chapter number but not available at the numbers of section and subsection. As shown in ...
user avatar
  • 1
2 votes
1 answer
19 views

Autonum wrong behaviour

I get the wrong behaviour with this code, using autonum. When one clicks on the hyperlink to the equation it jumps to the beginning of the page. Minimal (not) working example: \documentclass{book} \...
user avatar
1 vote
0 answers
46 views

Is it possible to create a hyperlink to a page that doesn't exist in the current document?

Is it possible to create a hyperlink to a page that doesn't exist in the current document? The reason for asking, is that I have many documents on Overleaf, which are split in order to increase ...
user avatar
  • 54
0 votes
0 answers
25 views

hyperref crashes underlining of starred sections [duplicate]

I want to underline sections and subsections with color. I found a solution, but when using a starred section*{} it crashes - but only if I use the package hyperef. How can I avoid this? % Compile ...
user avatar
1 vote
1 answer
63 views

Hyperlink prints OK but jumps to wrong target

When I use pdflatex to process a book-length document, in chapter 6 a couple of isolated links to theorem-like environments in that same chapter appear printed correctly in the pdf output, but ...
user avatar
  • 6,382
1 vote
1 answer
73 views

problem using tex4ht with xr-hyper when other documents are in separate folders

ps. a zip file at bottom which contains all files. I am splitting my large document into smaller separate documents, where now each chapter will be compiled separately (in its own folder), as separate ...
user avatar
  • 18k
2 votes
2 answers
52 views

Knowledge package coloring

I am having a somewhat complex issue with the knowledge package. A MWE is the following: \documentclass{article} \usepackage{xcolor} \usepackage{hyperref} \usepackage{cleveref} \usepackage{knowledge}...
user avatar
0 votes
1 answer
44 views

Identify the previous question number

Using exam class, I want to identify the previous question number. For example when you have 3 questions. Q1 Q2 Q3 I want to insert a piece of code between Q1 and Q2 and the result of that code will ...
user avatar
0 votes
0 answers
43 views

Latex clickable text to jump to reference [duplicate]

I would like to have a clickable text that jumps to one of my references in my latex document. Is that possible? For example, make the text "Edwin Hubble" clickable to the corresponding ...
user avatar
  • 35
1 vote
1 answer
36 views

New autoref categories

I have a document in which I define new environment for examples (MWE below). In it, I define the prefix for referencing it, which is simple example:nameofexample. Now, when working with \autoref I ...
user avatar
  • 147
0 votes
0 answers
24 views

How to make a superscript number outside the hyperlink box?

This is a minimal working example (in XeLaTeX): \documentclass[12pt]{ctexart} \usepackage{circledsteps, hyperref} \usepackage{lipsum} \begin{document} This is \hyperlink{1}{the first link}. \lipsum[1]...
user avatar
0 votes
3 answers
101 views

How \string and \newcommand work?

I try to write a command that each notation can link to the first appearance. Consider a notations A and a vector B. Define a command that fun{'}=B' and fun{x}=B^{x} for x=/='. If I want to write B^(A)...
user avatar
1 vote
1 answer
18 views

Footnote link does not jump

This is a minimal working example (in XeLaTeX): \documentclass[12pt]{ctexart} \title{Title} \usepackage[scr=boondox]{mathalfa} \usepackage{xeCJK, amsmath, amsthm, amssymb, hyperref, setspace, geometry,...
user avatar
0 votes
1 answer
13 views

Footnote conflicts with mathalfa

This is my minimal working example (in PDFLaTeX): \documentclass[12pt]{article} \usepackage{amsmath, amsthm, amssymb, geometry, setspace} \usepackage[frak=esstix]{mathalfa} \usepackage{hyperref} \...
user avatar
1 vote
2 answers
98 views

Referring to subfigures without using sub caption or similar packages

I am working on a book and I use the subcaption package to refer to some figures. However, I found that in some cases it is easier for me to just add the caption text (a), (b), etc. directly in the ...
user avatar
  • 2,793
0 votes
1 answer
19 views

Hyperref & bookmarks: reset and/or change levels bookmarks

My initial question was answered, but now a new issue has arisen. It relates to the bookmarks in the PDF. I am working with Overleaf, which does not have the current hyperref but an older one. In the ...
user avatar
  • 95
2 votes
1 answer
38 views

Group chapter bookmarks into separate added bookmark

I'm designing a book with an elaborate ToC. I'd like to keep the ToC the way it is, but would like to make the bookmarks in the PDF a little less overwhelming, by grouping chapter together. MWE: \...
user avatar
  • 95
1 vote
1 answer
55 views

PDF Table of Contents Metadata

On my computer, this minimal working example compiles properly and includes a table of contents in the pdf metadata so that, for example, I can open it in a sidebar to navigate the document \...
user avatar
1 vote
1 answer
31 views

Incorrect link to theorem with only enumerate/itemize inside

I have a bug with command autoref/ref from hyperref package. If there is nothing except enumerate/itemize link to theorem doesn't work: it goes to the beginning of document instead of theorem. How can ...
user avatar
2 votes
2 answers
69 views

Hyperref error when using letted command in heading

I like to use \let to alias a macro to another. For example, I often do something like \let\brand\textit and then I can just do \brand{Aloc Acoc}. This seems to work well, but causes problems when ...
user avatar
  • 585
0 votes
1 answer
50 views

MPDI article with cleveref

I need to write an article using the MDPI template. The latest version of this template is available on Overleaf or directly on MDPI website. This template is said to be compatible with cleveref ...
user avatar
  • 860
0 votes
1 answer
24 views

Glossaries-extra: Hyperref/Link only the first occurence of an entry in each chapter

I want the same as this question but with glossaries-extra package: Glossaries: Hyperref/Link only the first occurence of an entry in each chapter I tried it with \glssetcategoryattribute{glossary}{...
user avatar
3 votes
1 answer
58 views

Would the redefinition of \k and \H cause trouble?

In my current document, the commands \k and \H are defined to be \PU-cmd\k\Pu\k and \PU-cmd\H\Pu\H, which seems to be part of the package hyperref. However, for the convenience, I redefined them as ...
user avatar
  • 4,737
0 votes
0 answers
28 views

Coloring hyperlinks in 'kaobook' document class

Is there anyway to color, say blue, the theorem when we use \ref{} (or \autoref{}) to refer a theorem? For eg. look at the article: https://www.cse.iitk.ac.in/users/nitin/papers/border-depth3.pdf In ...
user avatar
2 votes
1 answer
98 views

Adding `UsedOn` option to cleveref's \cref to mimic hyperref's \backcite

I am trying to overload \label and \cref, so that the following happens (similar in spirit to backref's \backcite): In some preliminary chapter, I define in Theorem A a label \label{thm:A}. Later in ...
user avatar
0 votes
0 answers
25 views

Can I generate a table of contents from a pdf?

Let's say I have a pdf which was created with latex using \sections, but the creator did not generate bookmarks for the pdf using the hyperref package, and I do not have access to the latex source. Is ...
user avatar
0 votes
1 answer
32 views

When clicking on the reference to the first lemma in a section I am brought to the beginning of the section and not to the lemma

Updates are in bold Here When clicking the reference to a lemma in a custom sublemma-environment I created, I am brought to the beginning of the section and not to the lemma someone helped me to fix ...
user avatar
  • 27
1 vote
1 answer
46 views

LaTeX Glossaries remove unwanted blue text

I am trying to use glossaries package and it is working fine. But there are some strange "blue" text right before each acronyms. Please have a look at the picture to have a better ...
user avatar
  • 13
0 votes
0 answers
39 views

Using cleveref with mdpi template

I would like to use the \cref command provided by the cleveref package in a project using the MDPI template. However, I can't seem to do so without getting an error. Because I'm working from the ...
user avatar
  • 2,990
2 votes
1 answer
83 views

How do you make clickable links / citations within a document?

I am trying to have clickable references where clicking the citation in the first section sends the reader to the reference in the second second. I cannot get this to work even after reading about ...
user avatar
  • 23
0 votes
1 answer
221 views

Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `\faLink' on input line 1

Above warning is killing me as I am not able to resolve it and it is occurring multiple times as I am using the same code through out my document. I have tried all the solution pitched in on stack-...
user avatar

1
2 3 4 5
89