I have been trying to understand what is behind this warning:
Package biblatex Warning: Patching footnotes failed. (biblatex) Footnote detection will not work. which is produced by, for example, this code:
% !TeX program = lualatex \begin{filecontents}{example.bib} @article{example, author = {example}, title = {example}, journal = {example}, year = {2026} } \end{filecontents} \DocumentMetadata{ uncompress, lang=en, tagging=on, pdfstandard=UA-2, pdfstandard=A-4f, tagging-setup={math/setup={mathml-SE,mathml-AF}, extra-modules={verbatim-mo, verbatim-af}} } \documentclass[12pt]{report} \usepackage{setspace} \usepackage{biblatex} \addbibresource{example.bib} \begin{document} \cite{example} \printbibliographyExample. \end{document} Searching on this forum for similar issues, I am led to believe this has to do with the (re)definition of \@footnotetext. What confounds me, however, is that I can only produce this warning if I simultaneously set up the \DocumentMetadata, include setspace, and use biblatex. In other words, if I remove either the \DocumentMetadata or setspace then I no longer get this warning.
(I don't know if this is worth mentioning, but for what it's worth, I originally also use hyperref in the document where I found this issue-- its inclusion seems to have no bearing on this behavior).