(VSCode) LaTeX 所有文件报 no \citation no\bibdata bo \bibstyle 错误

清除.aux 等文件也没有用

问题在于(VSCode) LaTeX 所有文件报 no \citation no\bibdata bo \bibstyle 错误_第1张图片

只存在一种编译链

而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.csdn.net/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插件的左侧栏中找到编译链。

(VSCode) LaTeX 所有文件报 no \citation no\bibdata bo \bibstyle 错误_第2张图片 

2.切换编译方式

具体参见 

https://www.latexstudio.net/archives/12260.html

% !TEX program = xelatex
% 指定编译方式

即可完成
 

你可能感兴趣的:(问题,经验)