0

It seemed to be an open problem for quite some time that hyperref link spanning a pagebreak also hyperlinks headers, footers and footnotes inbetween (Hyperref Link Spans a Pagebreak, Looks Ugly, page break in the middle of a \cite, Very long footnotes with hyperlinked text, How do I forbid pagebreaks inside urls without forbidding linebreaks?).

But recetnly a very promesing solution was proposed in https://tex.stackexchange.com/a/578405/128042. If I don't misunderstand this solution simply adding the line \DocumentMetadata{testphase=new-or-1} in the beginning should solve the problem for TeXLive 2022 and 2023, but when I added this line my fotnote is still hyperlinked wrongly :(

\DocumentMetadata{testphase=new-or-1}
\documentclass[]{article}
\usepackage{hyperref}
\usepackage{color}
%\pagestyle{fancy}

\begin{document}

A\footnote{AaAaAa}

B

C\label{c}

\vspace{410pt}

Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbb \hyperref[c]{Ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccc cccccccccccc cccccccccc ccccccccccccccccc ccccccccccccccccc ccccccccccccccccc ccccccccccccccccc ccccccccccccccccc ccccccccccccccccc } \end{document}

Does someone have an idea how to fix this?

Jakob
  • 993

0 Answers0