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 小时前
Cortex-Debug使用PyOCD超时问题
vscode·gd32·pyocd·daplink·cortex-debug
俺不理解8 小时前
Android Studio 打开项目卡在 Importing xx Gradle Project
android·ide·android studio
Tiam-201611 小时前
开发办公工具
git·编辑器·开发工具·敏捷开发
学嵌入式的六子12 小时前
如何使用VScode开发STM32【喂饭级教程】-全过程讲解
c语言·ide·vscode·stm32·单片机·嵌入式硬件
liujing1023292912 小时前
STM32_一文看懂!VSCode导入STM32项目及AI辅助开发
ide·vscode·编辑器
MDY121914 小时前
IDEA推送文件到GIT失败,显示:无法执行Git:无法识别Git可执行文件的版本:无响应
java·ide·git·intellij-idea
YuQiao030315 小时前
华科学位论文——驯服word公式编辑器(不是mathtype的)
编辑器·word
应用市场16 小时前
插件加载机制深度解析——从浏览器扩展到VSCode插
ide·vscode·编辑器
Chase_______17 小时前
【Linux指南】:vi编辑器
linux·运维·编辑器
Peter·Pan爱编程17 小时前
VSCode Remote-SSH 的使用以及连接失败(Bad permissions)完整排错指南
vscode·ubuntu·ssh