用Latex排版论文时,发生报错 Sorry, but “MiKTeX Compiler Driver” did not succeed. 往前查看报错信息,是否有以下类似信息:
The style file: Definitions/mdpi.bst Illegal, another \bibstyle
command—line 238 of file template.aux : \bibstyle :
{mdpi} I’m skipping whatever remains of this command Database file
#1: mybibfile.bib
如果有,也许报错原因是因为重复使用了以下命令\bibliographystyle{}
。
有的Latex模板里开头自动包含了bibstyle的引用,类似下面:
[Definitions/mdpi] 就是模板的参考文献格式文件,后面如果再加 \bibliographystyle{} 就重复了。所以,删去 \bibliographystyle{} 后就可以顺利编译。
自己手动发现,快试试吧~