0
点赞
收藏
分享

微信扫一扫

Latex环境配置

半夜放水 2022-02-17 阅读 94

Vscode + Miktex

  1. 进入vscode设置中搜索编译设置
    在这里插入图片描述
  2. JSON改为
// 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%"
          ]
      }
    ],
    "latex-workshop.view.pdf.viewer": "tab",
  1. 注意! 出现Recipe terminated with error. Retry building the project. 报错时,更新miktex宏包即可
    在这里插入图片描述
举报

相关推荐

0 条评论