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

mac latex vscode 配置

mac latex vscode 配置

安装mactex.pkg 这里有个快速下载的镜像 https://mirrors.aliyun.com/CTAN/systems/mac/mactex/

可以检查是否将 PATH 写入

export PATH="/Library/TeX/texbin:$PATH"

vscode 下载插件 Latex Workshop
在这里插入图片描述
在配置文件 settings.json 中输入如下的配置

    "latex-workshop.latex.tools": [{"name": "xelatex","command": "/Library/TeX/texbin/xelatex","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","%DOCFILE%"]},{"name": "pdflatex","command": "/Library/TeX/texbin/pdflatex","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","%DOCFILE%"]},{"name": "latexmk","command": "/Library/TeX/texbin/latexmk","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=%OUTDIR%","%DOCFILE%"]},{"name": "biber",  // Use Biber instead of BibTeX for BibLaTeX"command": "/Library/TeX/texbin/biber","args": ["%DOCFILE%"]}],"latex-workshop.latex.recipes": [{"name": "XeLaTeX","tools": ["xelatex"]},{"name": "PDFLaTeX","tools": ["pdflatex"]},{"name": "Biber",  // New recipe to run Biber"tools": ["biber"]},{"name": "LaTeXmk","tools": ["latexmk"]},{"name": "xelatex -> biber -> xelatex*2",  // Adjusted to use Biber"tools": ["xelatex","biber","xelatex","xelatex"]},{"name": "pdflatex -> biber -> pdflatex*2",  // Adjusted to use Biber"tools": ["pdflatex","biber","pdflatex","pdflatex"]}],"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"],"latex-workshop.latex.autoClean.run": "onFailed","latex-workshop.latex.recipe.default": "lastUsed","latex-workshop.view.pdf.internal.synctex.keybinding": "double-click","editor.unicodeHighlight.allowedLocales": {"zh-hans": true,"zh-hant": true},"[latex]": {"editor.defaultFormatter": "James-Yu.latex-workshop"},"latex-workshop.latex.rootFile.indicator": "\\begin{document}"
http://www.xdnf.cn/news/6229.html

相关文章:

  • 嵌入式开发学习日志(数据结构--单链表)Day20
  • [python] Python单例模式:__new__与线程安全解析
  • sqlilabs-right-Less-32(宽字节注入)
  • 自定义列甘特图,原生开发dhtmlxgantt根特图,根据数据生成只读根特图,页面展示html demo
  • 面试题-复合
  • JS,ES,TS三者什么区别
  • 【docker】--容器管理
  • GpuGeek全栈AI开发实战:从零构建企业级大模型生产管线(附完整案例)
  • 2025年Flutter初级工程师技能要求
  • fiftyone-数据库配置和config与app_config配置文件
  • 视频编解码学习十二之Android疑点
  • Git 用户名与邮箱配置全解析:精准配置——基于场景的参数选择
  • 关于并发编程AQS的学习
  • 为什么go语言中返回的指针类型,不需要用*取值(解引用),就可以直接赋值呢?
  • 什么是函数重载?为什么 C 不支持函数重载,而 C++能支持函数重载?
  • 电商平台自动化
  • 基于 Spring Boot 瑞吉外卖系统开发(十五)
  • 【MoveIt 2】使用 MoveIt 任务构造器(MoveIt Task Constructor)进行拾取和放置
  • Docker 常见问题及其解决方案
  • NLP的基本流程概述
  • uni-app vue3版本打包h5后 页面跳转报错(uni[e] is not a function)
  • 使用ECS搭建云上博客wordpress(ALMP)
  • 零基础用 Hexo + Matery 搭建博客|Github Pages 免费部署教程
  • [操作系统] 策略模式进行日志模块设计
  • OkHttp连接池
  • 5月13日日记
  • 《社交应用动态表情:RN与Flutter实战解码》
  • 场景以及八股复习篇
  • 数据清洗ETL
  • 【Python 算法零基础 2.模拟 ④ 基于矩阵】