vscode设置latex

news/2024/12/29 12:59:11/

vscode配置latex

1.安装vscode,并添加环境变量路径

2.安装latex,bin文件夹添加到环境变量路径

3.vscode安装插件
在这里插入图片描述
4.vscode->文件->首选项->显示配置内容->setting.json文件,查看其位置目录,通过我的电脑找到此文件(不要使用vscode修改,因为vscode无权限,会导致修改失败)

5.setting.json通过记事本打开,覆写文件内容

记得修改位置
"latex-workshop.view.pdf.external.viewer.command":"D:\\Program Files\\SumatraPDF\\SumatraPDF.exe","\"D:/Program Files/vscode/Microsoft VS Code/Code.exe\" \"D:/Program Files/vscode/Microsoft VS Code/resources/app/out/cli.js\" -r -g \"%f:%l\"","%PDF%"

以下进行复制

{"latex-workshop.hover.preview.enabled":true,"latex-workshop.hover.preview.scale":0.8,"latex-workshop.latex.autoBuild.run": "onFileChange","latex-workshop.showContextMenu": true,"latex-workshop.intellisense.package.enabled": true,"latex-workshop.message.error.show": false,"latex-workshop.message.warning.show": false,"latex-workshop.latex.autoClean.run": "onFailed","latex-workshop.latex.recipe.default": "lastUsed",//"latex-workshop.view.pdf.viewer": "tab","latex-workshop.view.pdf.internal.synctex.keybinding": "double-click","editor.minimap.enabled": true, //控制是否显示缩略图。"latex-workshop.latex.tools": [{"name": "xelatex","command": "xelatex","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","%DOCFILE%"]},{"name": "pdflatex","command": "pdflatex","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","%DOCFILE%"]},{"name": "latexmk","command": "latexmk","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=%OUTDIR%","%DOCFILE%"]},{"name": "bibtex","command": "bibtex","args": ["%DOCFILE%"]}],"latex-workshop.latex.recipes": [{"name": "XeLaTeX","tools": ["xelatex"]},{"name": "PDFLaTeX","tools": ["pdflatex"]},{"name": "BibTeX","tools": ["bibtex"]},{"name": "LaTeXmk","tools": ["latexmk"]},{"name": "(bib-chain)xelatex -> bibtex -> xelatex -> xelatex","tools": ["xelatex","bibtex","xelatex","xelatex"]},{"name": "(bib-chain)pdflatex -> bibtex -> pdflatex -> pdflatex","tools": ["pdflatex","bibtex","pdflatex","pdflatex"]},],"latex-workshop.view.pdf.viewer": "external","latex-workshop.view.pdf.external.viewer.command":"D:\\Program Files\\SumatraPDF\\SumatraPDF.exe","latex-workshop.view.pdf.external.viewer.args": ["-forward-search","%TEX%","%LINE%","-reuse-instance","-inverse-search","\"D:/Program Files/vscode/Microsoft VS Code/Code.exe\" \"D:/Program Files/vscode/Microsoft VS Code/resources/app/out/cli.js\" -r -g \"%f:%l\"","%PDF%"],"latex-workshop.latex.clean.enabled": true,"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","*.synctex.gz""*.gz""*.aux"],
}

运行过程中可能会出现perl缺失,但是不影响使用(一些附属文件无法自动删除),安装后把perl安装目录设置为环境变量路径。


http://www.ppmy.cn/news/1225921.html

相关文章

【Java 进阶篇】唤醒好运:JQuery 抽奖案例详解

在现代社交网络和电商平台中,抽奖活动成为吸引用户、提升用户参与度的一种常见手段。通过精心设计的抽奖页面,不仅可以增加用户的互动体验,还能在一定程度上提高品牌的知名度。本篇博客将通过详细解析 JQuery 抽奖案例,带领你走进…

zyj-ha 安装过程及使用部署

一.安装过程排坑 1. 硬件环境准备 排坑 1 首先,服务器至少需要 2 台,每台服务器至少需要 2 块网卡,并且必须有预留 心跳线网口,不能被其他业务占用,否则容易出现脑裂。 2. 通过配置管理工具导入安装包 …

电子商务、搜索引擎

电子商务 域名 网络服务 网络樱肖 搜索引擎优化

驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接

参考:https://www.cnblogs.com/sam-snow-v/p/15917898.html eclipse链接SQL Server出现问题 笔者使用Open JDK 17,SQL Server 2016,项目中使用JPA操作数据库。测试环境没问题,生产环境出现如题所示“驱动程序无法通过使用安全套接…

Nginx(六) Nginx location 匹配顺序及优先级深究(亲测有效)

Nginx配置文件详解请参考另一篇文章 Nginx(三) 配置文件详解 本篇文章主要是探讨Nginx location的匹配顺序,依照惯例,我们还是先贴结论再看测试结果。 匹配location的过程,其实可以理解成一个在众多选项中寻找最佳答案的过程。当然&#xff…

wpf devexpress自定义编辑器

打开前一个例子 步骤1-自定义FirstName和LastName编辑器字段 如果运行程序,会通知编辑器是空。对于例子,这两个未命名编辑器在第一个LayoutItem(Name)。和最终用户有一个访客左右编辑器查阅到First Name和Last Name字段,分别。如果你看到Go…

【智能家居项目】FreeRTOS版本——多任务系统中使用DHT11 | 获取SNTP服务器时间 | 重新设计功能框架

🐱作者:一只大喵咪1201 🐱专栏:《智能家居项目》 🔥格言:你只管努力,剩下的交给时间! 目录 🍓多任务系统中使用DHT11🍅关闭调度器🍅使用中断 &am…

C++知识点总结(6):高精度乘法真题代码

一、高精度数 低精度数 #include <iostream> #include <cstring> using namespace std;int main() {// 存储并输入两个数字 char a_str[1005] {};long long b;cin >> a_str >> b;// 特例先行&#xff1a;结果是0的情况if (a 0 || b 0){cout <&…