清除.aux 等文件也没有用
问题在于
只存在一种编译链
而bibTex会识别到没有出现引用的动作 (\cite),进而报错
注:bibTex需要保证所有的参考文献均在上文中出现,如果需要引用未出现过的文章,应该使用\nocite 或者\nocites 命令
1. With the single command `\nocite{*}' you can now include in the reference
list every entry in the database les, without having to explicitly
\cite or \nocite each entry. Giving this command, in essence, \nocites
all the enties in the database, in database order, at the very spot in your
document where you give the command.
https://blog.youkuaiyun.com/love_786/article/details/53677371
解决方法
1.
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": [
"xelatex"
]
},
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
},
{
"name": "xe->bib->xe->xe",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
}
],
确保recipe编译链的完整,默认采用第一种方法编译。
******可以在VSCode插件的左侧栏中找到编译链。
2.切换编译方式
具体参见
https://www.latexstudio.net/archives/12260.html
% !TEX program = xelatex
% 指定编译方式
即可完成