Latex插入图片报错,解决方案亲测有效!

在论文写作中使用Latex排版出现的图片插入错误:

LaTeX Error: Cannot determine size of graphic in Figures/overall-framework.pdf (no BoundingBox)

原因:我使用的是pdfLatex编译器,而此前不小心在构建时选择了dvi->pdf链。后来看到一个博主说:dvi输出不支持读取png图片大小(我的论文中有pdf和png格式的图片)才恍然大悟!感谢博主江湖小妞http://www.javashuo.com/article/p-xigaimug-dx.html)!

因此我的解决方案:

打开Texstudio->选项->设置Texstudio->构建,然后按如下选项就行。

http://www.javashuo.com/article/p-xigaimug-dx.html