latex常见错误之I found no \bibdata command---while reading file main

 今天还是用latex编译文献发现了如下的错误,使用bibtex的时候显示如下的错误!

Command Line:   bibtex.exe "main"
Startup Folder: E:\paperwriting\knowledge and Information system

This is BibTeX, Version 0.99d (MiKTeX 2.9)
The top-level auxiliary file: main.aux
The style file: naturemag-doi.bst
I found no \bibdata command---while reading file main.aux
Warning--I didn't find a database entry for "SC"
Warning--I didn't find a database entry for "GG"
Warning--I didn't find a database entry for "MS"
Warning--I didn't find a database entry for "QS"
Warning--I didn't find a database entry for "Agatza2012Optimization"
Warning--I didn't find a database entry for "7930052"
Warning--I didn't find a database entry for "YJZ"
Warning--I didn't find a database entry for "YJZY"
Warning--I didn't find a database entry for "MSW"
Warning--I didn't find a database entry for "Agatz2011Dynamic"
Warning--I didn't find a database entry for "Amey2011Proposed"
Warning--I didn't find a database entry for "Ghoseiri2010Real"
Warning--I didn't find a database entry for "Kleiner2011A"
Warning--I didn't find a database entry for "Xing2009SMIZE"
Warning--I didn't find a database entry for "Nittel2006Ad"
Warning--I didn't find a database entry for "Baldacci2004An"
Warning--I didn't find a database entry for "Calvo2004A"
Warning--I didn't find a database entry for "Zheng2018Order"
Warning--I didn't find a database entry for "Calvo2007An"
Warning--I didn't find a database entry for "Cordeau2006A"
Warning--I didn't find a database entry for "Hvattum2007A"
Warning--I didn't find a database entry for "Cordeau2003A"
Warning--I didn't find a database entry for "Laporte1992Laporte"
Warning--I didn't find a database entry for "Huang2013Large"
Warning--I didn't find a database entry for "Wolfson2013T"
Warning--I didn't find a database entry for "Alonsomora2017On"
Warning--I didn't find a database entry for "CJF"
(There was 1 error message)


_____________________________________________________________________

 BibTeX Compilation Report

 Errors: 1   Warnings: 27
_____________________________________________________________________

 上网搜索找解决答案,发现了一个英文网站给出了解决方案,之所以提示没有找到bibdata主要是英文文献选中的bibliography{}语句没有编译,因此我们怀疑是将\end{document}的语句位置放在了前面,

由于文献内容较多,我们无法较好的检查,所以,我们使用这种方法进行检查,我们在bibliography{}语句下面放置一个没有定义的命令语句,然后执行latex编译,如果没有报错,说明\end{document}的语句位置放在了前面.

然后根据编译出的文档信息便可以快速的定位到\end{document}的语句的位置,删除该语句即可。

 

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值