Biber 和 Biblatex - 引用多个内容时出错

Biber 和 Biblatex - 引用多个内容时出错

我在 Win7x64 上使用 Texstudio 2.6.4、Miktex 2.9、Biber 1.8 和 Biblatex 2.9。我从 Natbib 切换到 Biblatex,因为我想在论文中使用一些更好的引用选项。我一直收到错误消息,并阅读了所有条目,但找不到此问题的解决方案:每当有超过 1 个引用时,我都会收到错误消息。请参阅以下 MWE:

\documentclass[onecolumn,a4paper,12pt, oneside, openright]{report}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[natbib=true, style=authoryear, hyperref=true, backend=biber]{biblatex}
\addbibresource{test.bib}
\begin{document}

\input{chapter1}

\printbibliography

\end{document}

第 1 章如下所示:

\onehalfspace
\chapter[Introduction]{Introduction}
\chaptermark{Introduction}

\section{Section1}

Text \autocite{test1}. Text \autocite{test2}.

当我使用 pdflatex biber pdflatex pdflatex 进行编译时,我从 Biber 收到以下错误消息:

Process started: "C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/biber.exe" "Thesis"

INFO - This is Biber 1.8
INFO - Logfile is 'Thesis.blg'
INFO - Reading 'Thesis.bcf'
WARN - Warning: Found biblatex control file version 2.6, expected version 2.5
INFO - Found 3 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'M:/PhD/Documents/Latex/Thesis/Export2.bib' for section 0
INFO - Found BibTeX data source 'M:/PhD/Documents/Latex/Thesis/Export2.bib'

Process exited with error(s)

文档中的引用看起来像代码(test1,test2),并且没有创建参考书目。我认为这与以下行有关:

WARN - Warning: Found biblatex control file version 2.6, expected version 2.5

但是,由于我使用的是 biblatex 2.9 版,所以这一行没有任何意义。此外,如果我删除第二个引用,会出现相同的警告消息,但编译起来没问题:

INFO - This is Biber 1.8
INFO - Logfile is 'Thesis.blg'
INFO - Reading 'Thesis.bcf'
WARN - Warning: Found biblatex control file version 2.6, expected version 2.5
INFO - Found 2 citekeys in bib section 0 
INFO - Processing section 0
INFO - Looking for bibtex format file 'M:/PhD/Documents/Latex/Thesis/Export2.bib' for  section 0
INFO - Found BibTeX data source 'M:/PhD/Documents/Latex/Thesis/Export2.bib'
INFO - Overriding locale 'English_United States.1252' default tailoring 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting 'entry' list 'nyt' keys
INFO - No sort tailoring available for locale 'English_United States.1252'
INFO - Writing 'Thesis.bbl' with encoding 'ascii'
INFO - Output to Thesis.bbl
INFO - WARNINGS: 1

Process exited normally

引用是正确的,并且已创建参考书目。那么,也许警告信息不正确?如能提供任何帮助,我将不胜感激!

答案1

这是一个您可以用作测试用例的 MWE,它在我的计算机上编译得很好。

\documentclass[]{article}
\listfiles % will put version info to .log file
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage[]{hyperref}
\hypersetup{colorlinks=true}

\begin{document}
Lorem ipsum dolor sit amet~\cite{kastenholz}.
At vero eos et accusam et justo duo dolores et ea rebum~\parencite{sigfridsson}.
\printbibliography 
\end{document}

你应该检查哪些版本已安装的 biblatex 和 biber。将它们与 MiKTeX 在线提供的版本进行比较:比布拉特克斯比伯.
如上所述另一个问题MiKTeX 使用两个树作为软件包,即管理树和用户树。不幸的是,默认情况下,biber 位于管理树中,而 biblatex 位于用户树中。因此,为了避免这两个版本不兼容,您应该将两者都放入管理树中,或者始终更新这两个树。

答案2

这可能会对其他人有所帮助,我花了很长时间试图解决这个问题。

我遇到了同样的问题,我安装了 Biber 1.9 和 Biblatex 2.9,但出现了同样的错误。我最近从 Bibtex 换成了 Biblatex。

我设法找到了导致错误的原因,是 bib 文件,我的一些文章中有“关键词”,我删除了它,现在工作正常。

希望这能有所帮助。詹姆斯

相关内容