hyperref icon indicating copy to clipboard operation
hyperref copied to clipboard

Page break occuring in a link in a footnote leads to most of the next page connected with the link.

Open ppasedach opened this issue 5 years ago • 1 comments

\documentclass{article}
\usepackage{lipsum}
\usepackage{hyperref}
\begin{document}
\lipsum[1]\footnote{\lipsum[2-4]}
\lipsum[3]
\footnote{\lipsum[2] XXX\\
XXX\\
XXX\\
XXX\\
\href{mailto:nobody@nowhere}{nobody@nowhere. Some more blabla to make this go on the next page. And something more here.} \lipsum[2-5]}
\lipsum[1-5]
\end{document}

Selection_045

ppasedach avatar Jul 14 '20 09:07 ppasedach

Yes that is known, but there isn't anything hyperref can do here currently. There will probably in the next pdftex version a primitive which will allow to interrupt the link in such cases but it will take time until this is in the tex systems and the code to make use of it in the footnote code. So better avoid breakable links in footnote for now.

u-fischer avatar Jul 14 '20 09:07 u-fischer

In a current texsystem this problem can be resolved by loading the PDF management and a patch for the output routine through a testphase code:

\DocumentMetadata{testphase=new-or-1} %loads pdfmanagment + output patch
\documentclass{article}
\usepackage{lipsum}
\usepackage{hyperref}
\begin{document}
\lipsum[1]\footnote{\lipsum[2-4]}
\lipsum[3]
\footnote{\lipsum[2] XXX\\
XXX\\
XXX\\
XXX\\
\href{mailto:nobody@nowhere}{nobody@nowhere. Some more blabla to make this go on the next page. And something more here.} \lipsum[2-5]}
\lipsum[1-5]
\end{document}

image

u-fischer avatar Nov 13 '22 16:11 u-fischer