LaTex: Undefined citation warnings

开发环境: texlive+vscode(Latex Workshop)+ elsarticle模板

问题描述:
编译过程出现如下类型错误:
Citation `xxxxx’ on page y undefined on input line z.

而且引用的文献也是显示的[?],文末的参考文献也未展示出来。

解决方案:
修改一下编译过程即可,可在vscode的setting.json文件中配置编译过程接口。
对于英文文章:

pdflatex test #使用pdflatex compile
 
bibtex test #使用bibtex compile
 
pdflatex test
 
pdflatex test

对于中文文章:

xelatex test #使用pdflatex compile
 
bibtex test #使用bibtex compile
 
xelatex test
 
xelatex test

其实仅仅这样并没有解决我的问题,后来发现还差一步——tex文件中没有引入参考文献的格式包
也就是说要在参考文献部分通过bibliographystyle命令引入格式文件。如下:
在这里插入图片描述
参考

猜你喜欢

转载自blog.csdn.net/qq_35268841/article/details/112316356