当前位置: 首页 > news >正文

vscode设置latex

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.lryc.cn/news/233190.html

相关文章:

  • Django模板层
  • TP_Link WR886N 硬改闪存16M内存64M,刷入openwrt
  • websocket详解
  • 可以免费使用的设计素材网站分享
  • workman使用手册1.0
  • Cesium深入浅出之自定义材质
  • Appium移动自动化测试--安装Appium
  • 前端学习笔记--ES6
  • 冥想第九百七十八天
  • Maven分离资源文件
  • Linux CentOS 8(MariaDB概述)
  • 简述几个我们对Redis 7开源社区所做的贡献
  • 产品卖点怎么写,如何打造卖点?
  • 跟李沐学AI-深度学习课程00-03【预告、课程安排、深度学习介绍、安装】
  • C++ this 指针 面试
  • 虚拟机上安装docker,并安装flink镜像
  • 【计算机网络】P1 计算机网络概述
  • 003 OpenCV filter2D
  • 轻松玩转华为MateX5分屏功能,乐趣层出不穷!
  • springboot引入redisson分布式锁及原理
  • Linux驱动开发 问题随笔
  • 三分/01分数规划
  • 大批卖家产品被下架!Temu又有新动作?
  • STM32 LL库 TIM3定时器多通道捕获输入采集
  • 如何为初创企业选择合适的 ERP 系统?
  • jssip contact的随机字符串的问题
  • 别再吐槽大学教材了,来看看这些网友强推的数学神作!
  • Elasticsearch-汇总
  • 9.3 【MySQL】系统表空间
  • STM32CUBEIDE生成hex文件 Release版本的下载不启动