vs code + miktex配置

windows10系统通过choco安装miktex
choco install miktex
添加path

vscode配置:

{
// Latex workshop 
 
"latex-workshop.latex.recipes": [
  {
    "name": "texify",  //放在最前面为默认编译方案, 适用于MikTex
    "tools": [
      "texify"
    ]
  },
{
      "name": "xelatex",
      "tools": [
          "xelatex"
      ]
  },
  {
      "name": "xe->bib->xe->xe",
      "tools": [
          "xelatex",
          "bibtex",
          "xelatex",
          "xelatex"
      ]
  }
],

"latex-workshop.latex.tools": [
  {
    "name": "texify",
    "command": "texify",
    "args": [
      "--synctex",
      "--pdf",
      "--tex-option=\"-interaction=nonstopmode\"",
      "--tex-option=\"-file-line-error\"",
      "%DOC%.tex"
    ]
  },
{
      // 编译工具和命令
      "name": "xelatex",
      "command": "xelatex",
      "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "%DOC%"
      ]
  },
  {
      "name": "pdflatex",
      "command": "pdflatex",
      "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "%DOC%"
      ]
  },
  {
      "name": "bibtex",
      "command": "bibtex",
      "args": [
          "%DOCFILE%"
      ]
  }
], 

  }

常见问题解决方法参考:https://blog.csdn.net/billy145533/article/details/102903395?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&dist_request_id=769e47bd-28aa-470a-9f52-7dfc71683e0a&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control

posted @ 2021-02-21 12:04  机智的学渣  阅读(360)  评论(0编辑  收藏  举报