Recipe terminated with error. vscode latex-workshop新的配置文件

workshop 更新了以后toolchain取消了,改为用tools和recipes

latex workshop由原来的toolchain改为了recipes,其实按照之前的toolchain文件很容易就得到新的recipes配置文件,

把下面代码写入 setting中
搜索:latex-workshop.latex.recipes, 然后修改设置.

     "latex-workshop.latex.recipes": [
        {
          "name": "xelatex",
          "tools": [
            "xelatex"
          ]
        },
        {
          "name": "xelatex -> bibtex -> xelatex*2",
          "tools": [
            "xelatex",
            "bibtex",
            "xelatex",
            "xelatex"
          ]
        }
      ],
      "latex-workshop.latex.tools": [
        {
          "name": "latexmk",
          "command": "latexmk",
          "args": [
            "-synctex=1",
            "-interaction=nonstopmode",
            "-file-line-error",
            "-pdf",
            "%DOC%"
          ]
        },
        {
          "name": "xelatex",
          "command": "xelatex",
          "args": [
            "-synctex=1",
            "-interaction=nonstopmode",
            "-file-line-error",
            "%DOC%"
          ]
        },
        {
          "name": "bibtex",
          "command": "bibtex",
          "args": [
            "%DOCFILE%"
          ]
        }
      ],
      "latex-preview.command": "xelatex"

转载自:
【1】https://zhuanlan.zhihu.com/p/35473874
【2】https://tieba.baidu.com/p/5622336658?red_tag=2919041269

你可能感兴趣的:(LaTeX)