Latex Config for VSCode

最近在写文章,试着配置了一下VSCode,把配置放在这里,备忘

{
    "folders": [
        {
            "path": "."
        },
        {
            "path": "my_paper_ws"
        }
    ],
    "settings": {
            // Latex workshop
            "latex-workshop.latex.tools": [
                  {
                    "name": "latexmk",
                    "command": "latexmk",
                    "args": [
                    "-synctex=1",
                    "-interaction=nonstopmode",
                    "-file-line-error",
                    "-pdf",
                    "%DOC%"
                    ]
                  },
                  {
                    "name": "makeindex",
                    "command": "makeindex",
                    "args":[
                        "%DOCFILE%.nlo",
                        "-s",
                        "nomencl.ist",
                        "-o",
                        "%DOCFILE%.nls"
                    ]
                  },
                  {
                    "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.latex.recipes": [
                  {
                    "name": "xelatex",
                    "tools": [
                    "xelatex"
                                ]
                          },
                  {
                    "name": "latexmk",
                    "tools": [
                    "latexmk"
                                ]
                  },

                  {
                    "name": "makeindex",
                    "tools": [
                    "makeindex"
                                ]
                  },
        
        
                  {
                    "name": "pdflatex -> bibtex -> pdflatex*2",
                    "tools": [
                    "pdflatex",
                    "bibtex",
                    "pdflatex",
                    "pdflatex"
                                ]
                  }
                ],
            "latex-workshop.view.pdf.viewer": "tab",  
            "latex-workshop.latex.clean.fileTypes": [
                "*.aux",
                "*.bbl",
                "*.blg",
                "*.idx",
                "*.ind",
                "*.lof",
                "*.lot",
                "*.out",
                "*.toc",
                "*.acn",
                "*.acr",
                "*.alg",
                "*.glg",
                "*.glo",
                "*.gls",
                "*.ist",
                "*.fls",
                "*.log",
                "*.fdb_latexmk"
              ]
    }
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注