I have a problem with the Hyperref package: when one reference, in the footnote, starts at the bottom of one page and is extended to the second page, all the second page is considered as the reference. For example, here, the reference is "de Groot, Bondy and Schuitema, 2019" but because "Schuitema, 2019" is extended on the second page, in the footnote, all the second page is considered as the reference.... Would there be an easy way to fix this? Many thanks in advance.
Asked
Active
Viewed 84 times
1 Answers
0
There are two issues that I can see. The first one has to do with footnotes, whereas the second with page breaks within the text. Since I assume that these cases are not common, I found a workaround for both cases:
- For the footnotes, setting
\interfootnotelinepenalty=10000as proposed here: Footnote runs onto second page - For the page breaks, enclosing the "target" text with an
fboxdoes the trick, as this will prevent the text breaking.
Maybe the fbox approach also works with the footnotes, but I am unable to reproduce the issue by myself, so I cannot test it.
Here is an MWE with both workarounds.
\documentclass{article}
\usepackage{hyperref,lipsum}
\usepackage[style=mla,backend=bibtex]{biblatex}
\addbibresource{biblatex-examples.bib}
\interfootnotelinepenalty=10000
% Removes borders from fbox
\setlength{\fboxsep}{0pt}%
\setlength{\fboxrule}{0pt}%
\begin{document}
\lipsum[-5]
Suspendisse vel felis. Ut lorem lorem, interdum eu, tincidunt sit
\fbox{\href{https://tex.stackexchange.com}{link text hello world}} Furthermore, footnotes are feasible \footnote{Yes this is a long footnote as defined by whoever did it text text text text text text text~\cite{baez/article, kastenholz}}
\lipsum[-2]
\printbibliography
\end{document}
Jes
- 839
-
Why do you use
\fbox? Why not\mboxinstead? On the other hand, I think this is just avoiding the problem, not solving it. – hair-splitter Oct 04 '23 at 12:42 -
I did not remember that
\mboxexists either, there is no other reason. I agree that this does not solve the issue, it presents a workaround around it. – Jes Oct 04 '23 at 12:51

\interfootnotelinepenalty=10000somewhere in your preamble, but without an MWE it is difficult to help. – Jes Oct 04 '23 at 09:29