更新后 Biber 和 Biblatex 出现错误

更新后 Biber 和 Biblatex 出现错误

这是我收到的日志。Biblatex 文档说是版本 3.17,但错误日志说是版本 3.16

INFO - This is Biber 2.17
INFO - Logfile is 'main.blg'
INFO - Reading 'main.bcf'
ERROR - Error: Found biblatex control file version 3.7, expected version 3.8.
This means that your biber (2.17) and biblatex (3.16) versions are incompatible.
See compat matrix in biblatex or biber PDF documentation.
INFO - ERRORS: 1
Biber error: [494] Utils.pm:409> ERROR - Error: Found biblatex control file version 3.7, expected version 3.8.
Latexmk: Found biber source file(s) [main.bcf]
Latexmk: Summary of warnings from last run of *latex:
    Latex failed to resolve 8 reference(s)
    Latex failed to resolve 184 citation(s)

答案1

删除项目的.aux.bbl.bcf文件并重新编译。

如果这解决了错误,那么问题只是由旧的辅助文件引起的(大概您在运行 LaTeX 之前运行了 Biber,因此 LaTeX 无法在 Biber 看到辅助文件之前将它们更新到新版本)。

如果错误仍然存​​在,则说明您尚未完全更新 TeX 系统。在这种情况下,您需要确保更新 Biber 和biblatex。请参阅我如何更新我的 TeX 发行版?应该如何维护和更新 MiKTeX 安装?

答案2

对我来说,这不仅仅是清除一些辅助文件的问题。我的 TeX 安装是通过 Homebrew ( brew install texlive) 完成的,我相信有一个长期存在的问题Biber 的分发版本与 Biblatex 包不兼容。

对我来说,解决问题的方法是brew install biber单独执行。这将我的 Biber 从 v2.12 升级到 v2.19,事实证明这已经足够了。

相关内容