最近在写学位论文,但是由于自己对Latex不是很熟悉,所以在插入参考文献的时候遇到了如下问题,自己折腾了近三个小时,记录一下。
报错:
I found no \citation commands—while reading file thesis.aux
I found no \bibdata command—while reading file thesis.aux
I found no \bibstyle command—while reading file thesis.aux
【自己相关配置】:
(1) \usepackage[backend = biber, style = gb7714-2015ay, gbnamefmt=lowercase, gbpub=true, natbib = true]{biblatex}(2)在thesis.bib文件中添加了相关参考文献
(3)引用部分使用了\parencite{xxx}进行引用
【出现的错误】
(1)首先在生成的目录中“参考文献”消失了,同时本该显示参考文献的页面也不见了
(2)在message栏出现了如下报错信息
I found no \citation commands---while reading file thesis.aux
I found no \bibdata command---while reading file thesis.aux
I found no \bibstyle command---while reading file thesis.aux
(There were 3 error messages)
####【解决方案】
(1)TeXstudio中文安装版:
- 在texstudio【设置】→【构建】→【默认文献工具】中选择biber
- 再严格按照【构建并查看】→【参考文献】→【构建并查看】→【构建并查看】的顺序编译文档
(2)TeXstudio英文版的安装:
在英文版本的TeXstudio中设置如下:
- Step1: [Options]→[Configure TeXstudio]→[Build]
- Step2: 将其中[Default Bibliography Tool]设置为Biber
- Step3: [Build & View]→[参考文献]→[Build & View]→[Build & View] //注意,这一步的编译顺序是最重要的