
考慮以下 MWE
\documentclass{beamer}
\usepackage{lmodern}
\usepackage[style=authoryear-comp,backend=biber]{biblatex}
\begin{document}
\begin{frame}
Foo
\end{frame}
\end{document}
這將給予警告:
Package biblatex Warning: Patching footnotes failed.
(biblatex) Footnote detection will not work.
答案1
此警告是在套件載入期間發出的biblatex
嘗試修補某些命令(使用etoolbox
)。因此,如果不編輯文件,就無法直接避免此訊息.sty
(biblatex2.sty
在這種情況下)或使用替代方法...就像silence
包裹。
\documentclass{beamer}
\usepackage{silence,lmodern}
\usepackage[style=authoryear-comp,backend=biber]{biblatex}
% Filter warnings issued by package biblatex starting with "Patching footnotes failed"
\WarningFilter{biblatex}{Patching footnotes failed}
\begin{document}
\begin{frame}
Foo
\end{frame}
\end{document}
答案2
從 3.10 開始的版本biblatex
支援修補beamer
腳註命令,以便腳註偵測有效且不會發出警告。
如果您仍然收到此警告,您應該考慮更新biblatex
(以及 Biber)。
也可以看看Beamer 和 biblatex 可能的警告補救措施:修補腳註失敗,https://github.com/plk/biblatex/issues/581和https://github.com/plk/biblatex/commit/5169d2a64777090aa29d38df7543301f5c8b876b