Vscode搭配latex简易教程

1. 找镜像网站下载texlive的iso文件

清华源镜像

下载之后直接打开iso文件,打开install-tl-windows.bat文件,进行安装即可,安装大概30分钟左右

2. VScode端配置

2.1 下载这三个插件

2.2 打开设置

2.3 追加内容到配置json文件当中

json 复制代码
  // Latex configuration
  "latex-workshop.latex.recipes": [
    {
      "name": "xe->bib->xe->xe",
      "tools": [
        "xelatex",
        "bibtex",
        "xelatex",
        "xelatex"
      ]
    }
  ],
  "latex-workshop.latex.tools": [
    {
      // 编译工具和命令
      "name": "xelatex",
      "command": "xelatex",
      "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        // "-pdf",
        "%DOCFILE%"
      ]
    },
    {
      "name": "pdflatex",
      "command": "pdflatex",
      "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOCFILE%"
      ]
    },
    {
      "name": "bibtex",
      "command": "bibtex",
      "args": [
        "%DOCFILE%"
      ]
    }
  ],
  "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"
  ]

2.4 重启VScode即可

右上角书本加一个放大镜的标识就是查看编译好的pdf文件

相关推荐
送我上青云|5 小时前
告别繁琐命令行:VS Code CMake Tools 环境配置极简指南
ide·visual studio code
还是大剑师兰特11 小时前
Vue3 前端专属配置(VSCode settings.json + .prettierrc)
前端·vscode·json
小路恢弘15 小时前
xcode替换LLVM插件
ide·macos·xcode
学嵌入式的小杨同学15 小时前
STM32 进阶封神之路(十五):DHT11 单总线实战 —— 温湿度检测从时序解析到代码落地(库函数 + 寄存器)
vscode·stm32·单片机·嵌入式硬件·mcu·智能硬件·pcb工艺
阿捏利16 小时前
vscode+ida-mcp-server配置及使用
vscode·ida·逆向·mcp
#空城17 小时前
LVGL9.5在VScode中安装模拟器
ide·vscode·编辑器
wayz1117 小时前
正则表达式:从入门到精通
java·python·正则表达式·编辑器
Liu.77419 小时前
vscode使用git和svn
git·vscode·svn
吧啦蹦吧20 小时前
idea---------------
java·ide·intellij-idea
golang学习记20 小时前
JetBrains Air 公测上线:当 26 年老牌 IDE 厂商开始“玩“智能体[特殊字符]
ide·intellij-idea·air