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}的语句位置放在了前面,

latex常见错误之I found no \bibdata command---while reading file main_第1张图片

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

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

 

你可能感兴趣的:(latex)