VS code+Latex+SumatraPDF 环境搭建
首先确保安装完VS code,latex 和SumatraPDF软件。
VS code 配置
进入VS code 界面, Ctrl+,打开setting.json,编辑后的内容如下:
{
"security.workspace.trust.untrustedFiles": "open",
"latex-workshop.latex.tools": [
{
// 编译工具和命令
"name": "xelatex",
"command": "C:/Program/texlive/2021/bin/win32/xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOCFILE%"
]
},