latex3 / pdfresources

LaTeX PDF resource management
LaTeX Project Public License v1.3c
22 stars 5 forks source link

Hyperref: link across pages, footnote is still included #57

Open baarreth opened 8 months ago

baarreth commented 8 months ago

Hello. I hope I am posting this in the right place.

It was a known problem that if a long hyperlink happens to be in the end of a page, and continues in the next one, hyperref will include in the link box both footer of the first page and the header of the next one. While the current hgeneric-testphase.def works greatly (when activated by \DocumentMetadata{testphase=new-or-1} before \documentclass), the problem persists with footnotes.

In the example below, "chanceler imperial" is a hyperlink that spans across two pages. Without the current driver, footnote, footer and header are included in the link box. With the driver, footer and header are excluded, but the footnote persists.

Without \DocumentMetadata{testphase=new-or-1} image image

With \DocumentMetadata{testphase=new-or-1} image image

In this link, Ulrike Fischer provides a proper explanation of the issue, and a xpatch to avoid it for footer and header (which still works in latex 2023).

Could you provide a temporary xpatch for the footnote as well?