latex3 / latex3/hyperref

Help for \HyperRaiseLinkHook needed

Open
#418 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
205
Forks
41
PR merge metrics
No merged PRs in 30d

Description

So far I was able to raise the hook of internal links for better hover preview as offered by TeXShop, for example.
For unknown reasons, this doesn't seem to work anymore.
I seem to be using hyperref 2026-04-24 v7.01q.
Here is a small example file:

\documentclass{article}
\usepackage{amsmath}
\usepackage{hyperref}

\makeatletter
\newcommand{\RaiseHook}[1]{\renewcommand\HyperRaiseLinkHook%
{\setlength\HyperRaiseLinkLength{#1\baselineskip}%
\global\let\HyperRaiseLinkHook\@empty}\ignorespaces}
\makeatother

\begin{document}
\noindent
Vandermonde's determinant:
\RaiseHook{3.2}  %Supposed to make the matrix fully visible when clicking on the link below
\begin{equation}\label{VandemondeDet}
\det\begin{pmatrix}
1&x_1&x_1^2&\ldots&x_1^{d-1}\\
1&x_2&x_2^2&\ldots&x_2^{d-1}\\
1&x_3&x_3^2&\ldots&x_3^{d-1}\\[-1\jot]
\vdots&\vdots&\vdots&\ddots&\vdots\\
1&x_d&x_d^2&\ldots&x_d^{d-1}\\
\end{pmatrix}
\end{equation}
To calculate the determinant (\ref{VandemondeDet}), we proceed by induction $\ldots$
\end{document}

Any suggestions how to get back the old behaviour?
Thanks a lot in advance!

Uwe

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied minimal LaTeX example and inspect hyperref's handling of \HyperRaiseLinkHook in v7.01q. Reproduce the link to VandemondeDet and compare the PDF target area with the expected raised-hook behavior; done when the matrix is fully visible again or the changed behavior is explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.