Latex环境配置

  • Post author:
  • Post category:其他




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宏包即可

    在这里插入图片描述
  2. 问题

    在这里插入图片描述

    解决方法:在

    git

    上重新下载bbx与cbx



版权声明:本文为weixin_42818074原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。