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}.
5,174 questions
1
vote
1
answer
12
views
How to control vertical alignment of the hyperref box around printed citation label in tex with natbib
The hyperref link boxes around my citation labels appear vertically too small (“smashed”). I would like to add a \vphantom{Xg} (or something similar) so that all citation link boxes have a consistent ...
0
votes
1
answer
36
views
Modifying casing of zref-titleref references or alternatives
I have multiple definitions I want to reference throughout the paper with a link back.
However instead of "Definition X" I want to use the title I gave the definitions, i.e. "Super ...
0
votes
2
answers
43
views
How to disable clickable and breakable url hyperlink only in `minted` environment?
I was afraid that this question is duplicated, but I can't find it since 5-minutes' search.
I have the following code with minted-v3 on TL2025:
\documentclass{article}
\usepackage{showframe}
\...
0
votes
1
answer
50
views
LaTeX: Referring to theorem that shows the title in the front if there is any
I want to have some \fullref that does this:
If I write the following:
\begin{theorem}\label{thm:a}
Some theorem.
\end{theorem}
\begin{theorem}[Nice Theorem]\label{thm:b}
Some theorem.
\end{theorem}
...
0
votes
1
answer
26
views
Missing Hyperlink for ToC, LoF, and LoT entries with custom toc entries using titletoc
I have the following code for my dissertation thesis. I have posted the entire preamble as it may point to a possible solution. I have heavily customized the ToC, LoF, and LoT entries using the ...
6
votes
2
answers
154
views
Section title with \star
I am trying to get the following:
But when I insert it in this way:
\documentclass[a4paper,12pt]{amsart}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\section{Introduction}
\subsection{$...
1
vote
1
answer
41
views
LaTeX not properly tagging links that appear in headers
I am producing a tagged pdf, and I'm trying to put a hyperlink in the header using fancyhdr.
\DocumentMetadata{pdfstandard = ua-2, pdfversion = 2.0, tagging = on}
\tagpdfsetup{table-header-rows=1}
\...
0
votes
0
answers
62
views
TeX Live 2025 shows \ac / \cref warnings but TeX Live 2024 doesn't
Combining the acronym package with tableofcontents and other lists can cause unexpected behaviour if acronyms are used in headings (and captions etc). The compiler sees the list as the first time the ...
1
vote
1
answer
38
views
Error based on interaction of thmtools and an implemantation of a refable delayed proof environment
I added the solution by @egreg to the question Reference to proof prints section instead to my document and it did not work throwing the error:
Undefined control sequence. \@hyper@@anchor ...r@spot {#...
0
votes
0
answers
46
views
How can I define custom footnote links that respect duplicates, and store the pages they appear on?
I would like to implement commands for referencing requirements in a technical report. The goal is to streamline referencing requirements in the text as they are discussed, and automatically keep ...
0
votes
0
answers
26
views
Fomatting titles in PDF Index / Outline [duplicate]
I am looking for some guidence on styling the pdf "index" that hyperref generates. I am talking about the sidebar that lists sections in a document:
Evince calls it an outline rather than ...
9
votes
2
answers
456
views
Link with many %
Generally, I don't include many links in my PDFs. Until now I’ve never had problems with \href from the hyperref package: when the URL contains % characters, I escape them using \% and everything ...
5
votes
1
answer
219
views
Newest pdfmanagement conflicts with tocloft package also for pdflatex
I have been using DocumentMetadata with tocloft in pdflatex without setbacks for more than two years. However, something changed with the most recent updates.
Currently the code gives warning tocloft....
5
votes
3
answers
335
views
Text running into right margin
When having the MWE:
\documentclass{book}
\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{hyperref}
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\...
4
votes
1
answer
116
views
Set OriginalDocumentID (and other XMP metadata) from PDF management
For XMP metadata, there is a field called OriginalDocumentID. How can I set this from lualatex (or pdflatex) using the PDF management machinery? This field is briefly mentioned in the l3pdfmeta ...