问题:
使用时比博特作为后端比布拉特克斯,我的文档按预期编译。不幸的是,当我切换到比伯,我看到以下错误:
第 XX 页上的引用‘XXX’在输入行 XX 上未定义。
我认为我已经以 .bib 格式正确导入了参考文献(直接从 Mendeley 导出)。使用时,每章的参考书目和引文都可以正确解析比博特作为后端,所以我的问题是:
我该如何预防比伯触发此错误?
设置:
我正在运行 Overleaf,使用 pdfLaTeX 编译器和 biblatex 作为我的引用包。
我正在写一篇论文,因此希望在每个单独的章节中都包含一个参考书目。
相关代码
序言代码: 这是我用来定义序言中的引用和参考书目设置的相关代码部分。
\usepackage[style=nature,
backend =biber,
refsection=chapter,
intitle =true,
sorting =none,
giveninits=true,
citestyle =nature,
abbreviate=true,
natbib =false,
uniquename=false,
uniquelist=false,
date =year,
url =false,
doi =false,
isbn =false,
backref =false,
hyperref =auto,
mincitenames=1,
maxcitenames=3]{biblatex}
\addbibresource{references.bib}
引文代码:这是我用来在文档的每一章中进行引用和打印参考书目的代码。
\chapter{ChapterTitle}
Lorem Ipsum \cite{citationkey1}
Lorem Ipsum \cite{citationkey2}
\printbibliography[heading=subbibintoc,title={Bibliography}]
相关章节的.blg 输出文件:
This is BibTeX, Version 0.99d (TeX Live 2021)
Capacity: max_strings=200000, hash_size=200000, hash_prime=170003
The top-level auxiliary file: output3-blx.aux
The style file: biblatex.bst
This database file appears more than once: references.bib
---line 11 of file output3-blx.aux
: \bibdata{output-blx,references,references
: }
I'm skipping whatever remains of this command
Reallocated glb_str_ptr (elt_size=4) to 20 items from 10.
Reallocated global_strs (elt_size=200001) to 20 items from 10.
Reallocated glb_str_end (elt_size=4) to 20 items from 10.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated wiz_functions (elt_size=4) to 6000 items from 3000.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Database file #1: output-blx.bib
Database file #2: references.bib
I was expecting a `,' or a `}'---line 6936 of file references.bib
:
: @article{Liu2018TopographicalAnalysis,
(Error may have been on previous line)
I'm skipping whatever remains of this entry
Biblatex version: 3.16
Reallocated wiz_functions (elt_size=4) to 9000 items from 6000.
Reallocated singl_function (elt_size=4) to 100 items from 50.
You've used 1 entry,
6393 wiz_defined-function locations,
1201 strings with 8967 characters,
and the built_in function-call counts, 1522 in all, are:
= -- 72
> -- 70
< -- 1
+ -- 49
- -- 28
* -- 31
:= -- 368
add.period$ -- 0
call.type$ -- 1
change.case$ -- 0
chr.to.int$ -- 42
cite$ -- 0
duplicate$ -- 11
empty$ -- 103
format.name$ -- 0
if$ -- 322
int.to.chr$ -- 0
int.to.str$ -- 0
missing$ -- 0
newline$ -- 20
num.names$ -- 0
pop$ -- 47
preamble$ -- 1
purify$ -- 0
quote$ -- 0
skip$ -- 77
stack$ -- 0
substring$ -- 151
swap$ -- 1
text.length$ -- 20
text.prefix$ -- 0
top$ -- 1
type$ -- 22
warning$ -- 0
while$ -- 64
width$ -- 0
write$ -- 20
(There were 2 error messages)
相关阅读
引文包入门指南乳胶:bibtex 与 biber 以及 biblatex 与 natbib 的比较
更多详情比布拉特克斯兼容性:bibtex 和 biblatex 书目文件兼容性?
BibLaTeX 文档:https://www-uxsup.csx.cam.ac.uk/pub/tex-archive/macros/latex/contrib/biblatex/doc/biblatex.pdf
答案1
错误处理的变化:Biber 与 BibTeX
正如 @moewe 在原始问题的评论中指出的那样,Biber 在处理错误时可能比 BibTeX 更挑剔。在这种情况下,这意味着当使用 BibTeX 运行时,pdf 将按预期进行编译(包括参考书目),但使用 Biber 时则编译时不包括参考书目。
{
要解决此问题,请从输出日志中下载 .blg 文件。这将突出显示 .bib 文件中的任何错误。在本例中,一个参考文献的标题中有一个附加内容,这导致 Biber 后端解析时出现问题。