用VScode写Latex

主要内容可以直接导到这里

A Fast Guide on Writing LaTeX with LaTeX Workshop in VS Code - Jia Jia Math

其中关于TexLive安装完成之后的路径设置有一些迷惑,win11下测试是不需要手动去添加的,去系统变量里检查一下就可以了,应该点开path就是最后一个

用VScode写Latex_第1张图片

其他部分应该比较顺利,还有后面json配置是这样的:

{
    "editor.inlineSuggest.enabled": true,
    "security.workspace.trust.untrustedFiles": "open",
    "files.autoSave": "afterDelay",
    "editor.fontFamily": "Fira Code, Fira Code Mono",
    "protoc": {
    
    },
    "editor.unicodeHighlight.ambiguousCharacters": false,
    "cmake.configureOnOpen": true,
    "editor.fontSize": 16,
    "accessibility.dimUnfocused.opacity": 1,
    "debug.terminal.clearBeforeReusing": true,
    "terminal.integrated.fontSize": 15,
    "terminal.integrated.lineHeight": 1.2,
    "terminal.integrated.letterSpacing": 0.9,
    "terminal.integrated.inheritEnv": false,
    "terminal.integrated.fontFamily": "Fira Code",
    "explorer.confirmDragAndDrop": false,
    "workbench.iconTheme": "material-icon-theme",
    "workbench.productIconTheme": "vscode-v1-icons",
    "explorer.confirmDelete": false,
    "workbench.colorTheme": "Default Dark+"
    "latex-workshop.latex.tools": [
        {
         "name": "latexmk",
         "command": "latexmk",
         "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "-pdf",
          "-outdir=%OUTDIR%",
          "%DOC%"
         ],
         "env": {}
        },
        {
         "name": "xelatex",
         "command": "xelatex",
         "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "%DOC%"
         ],
         "env": {}
        },
        {
         "name": "pdflatex",
         "command": "pdflatex",
         "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "%DOC%"
         ],
         "env": {}
        },
        {
         "name": "bibtex",
         "command": "bibtex",
         "args": [
          "%DOCFILE%"
         ],
         "env": {}
        }
       ],
       "latex-workshop.latex.recipes": [
        {
         "name": "pdfLaTeX",
         "tools": [
          "pdflatex"
         ]
        },
        {
         "name": "latexmk ",
         "tools": [
          "latexmk"
         ]
        },
        {
         "name": "xelatex",
         "tools": [
          "xelatex"
         ]
        },
        {
         "name": "pdflatex ➞ bibtex ➞ pdflatex`×2",
         "tools": [
          "pdflatex",
          "bibtex",
          "pdflatex",
          "pdflatex"
         ]
        },
        {
        "name": "xelatex ➞ bibtex ➞ xelatex`×2",
        "tools": [
          "xelatex",
          "bibtex",
          "xelatex",
          "xelatex"
         ]
        }
    ]
       
}

最后测试成功,散花~

用VScode写Latex_第2张图片

你可能感兴趣的:(vscode,ide,编辑器)