Biber/Biblatex 问题(使用未初始化的值)

Biber/Biblatex 问题(使用未初始化的值)

所以我准备了一篇明天要发表的论文,然后我决定添加一个新的参考文献。这是一个坏主意,当我编译时发生了以下情况:

Use of uninitialized value $name in string eq at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber/SortLists.pm line 77.

Use of uninitialized value $pre in regexp compilation at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber/Internals.pm line 959.

Use of uninitialized value $thislocale in concatenation (.) or string at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber.pm line 2767.

Use of uninitialized value $thislocale in concatenation (.) or string at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber.pm line 2854.

Use of uninitialized value $thislocale in concatenation (.) or string at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber.pm line 2859.

Use of uninitialized value $lname in concatenation (.) or string at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber.pm line 1929.

Use of uninitialized value $lssn in concatenation (.) or string at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber.pm line 1929. Use of uninitialized value $lssn in concatenation (.) or string at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber.pm line 1943. Use of uninitialized value $lssn in concatenation (.) or string at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber.pm line 1958.

Can't use an undefined value as an ARRAY reference at C:\Users\kevinalh\AppData\Local\Temp\par-6b6576696e616c68\cache-48b1414b522013718507ac7cc0b21aa1f37b24ea\inc\lib/Biber/Internals.pm line 949.

INFO - This is Biber 2.1
INFO - Logfile is 'document.blg'
INFO - Reading 'document.bcf'
WARN - Warning: Found biblatex control file version 2.6, expected version 2.7
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'document.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'document.bib'
INFO - Overriding locale '' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Overriding locale '' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Sorting list 'nty' of type 'entry' with scheme 'nty' and locale ''
INFO - No sort tailoring available for locale ''

需要考虑的事项:

  • 几天前我已经使用 MikTeX 升级了所有软件包,但直到今天才更新参考书目。
  • MikTeX 在线存储库这些天显然没有工作
  • 使用 \listfiles,我得到:

    biblatex.sty 2014/06/25 v2.9a 可编程书目 (PK/JW/AB) biblatex2.sty 2014/06/25 v2.9a 可编程书目 (biber) (PK/JW/AB )

  • 考虑到存储库不起作用,我获取了 biblatex-3.0.tds.tgz 文件并将其解压缩到 MikTeX 文件夹中,然后通过 MikTeX 选项刷新 FNDB。

我已经尝试删除 par-cache 文件夹和 .aux、.bbl 和 .bcf 文件,并运行一个最小工作示例:

\documentclass{article}

\usepackage[backend=biber]{biblatex}

\addbibresource{document.bib}

\begin{document}
    Lorem ipsum dolor sit amet
    \cite{A01}
    \printbibliography 
\end{document}

document.bib 为:

@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}

没有成功。

非常感谢您的帮助。

答案1

您的 biblatex 太旧了。您可能需要运行用户更新管理器来更新它。由于 miktex 存储库不在线:将 biber 降级到版本 1.9:https://sourceforge.net/projects/biblatex-biber/files/biblatex-biber/

或者更新 biblatex:从 CTAN 镜像获取 biblatex miktex 包:

http://mirrors.ctan.org/systems/win32/miktex/tm/packages

从同一镜像下载两个包数据库:

http://mirrors.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma http://mirrors.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma

将所有内容放在某个空文件夹中(miktex 之外),然后在包管理器或更新管理器中选择该文件夹作为本地存储库。

相关内容