Mac m1 vscode 配置latex 详细教程
创始人
2024-12-28 06:09:26
0

1、LaTeX官网下载MacTex

https://www.tug.org/mactex/mactex-download.html
在这里插入图片描述

2、VScode安装插件

  • LaTeX language support
  • LaTeX Workshop
    在这里插入图片描述

3、MacTeX和插件安装完成后,在VScode点击设置,找到settings.json文件,在文件配置中加入:

"latex-workshop.latex.tools": [         {           "name": "xelatex",           "command": "xelatex",           "args": [             "-synctex=1",             "-interaction=nonstopmode",             "-file-line-error",             "%DOC%"           ]         },         {           "name": "pdflatex",           "command": "pdflatex",           "args": [             "-synctex=1",             "-interaction=nonstopmode",             "-file-line-error",             "%DOC%"           ]         },         {           "name": "latexmk",           "command": "latexmk",           "args": [             "-synctex=1",             "-interaction=nonstopmode",             "-file-line-error",             "-pdf",             "%DOC%"           ]         },         {           "name": "bibtex",           "command": "bibtex",           "args": [             "%DOCFILE%"           ]         }       ],         "latex-workshop.latex.recipes": [         {           "name": "XeLaTeX",           "tools": [             "xelatex"           ]         },         {           "name": "PDFLaTeX",           "tools": [             "pdflatex"           ]         },         {           "name": "latexmk",           "tools": [             "latexmk"           ]         },         {           "name": "BibTeX",           "tools": [             "bibtex"           ]         },         {           "name": "xelatex -> bibtex -> xelatex*2",           "tools": [             "xelatex",             "bibtex",             "xelatex",             "xelatex"           ]         },         {           "name": "pdflatex -> bibtex -> pdflatex*2",           "tools": [             "pdflatex",             "bibtex",             "pdflatex",             "pdflatex"           ]         },     ],  

在这里插入图片描述

在这里插入图片描述

文件中的其余配置不做修改。

4、测试:运行一个.tex文件,点击运行即可

在这里插入图片描述

5、可以同步查看对应的pdf文件

在这里插入图片描述

相关内容

热门资讯

长期以来!德州辅助工具到底怎么... 长期以来!德州辅助工具到底怎么样,wepokerh5破解(透视)教程书教程(原来有挂)1)德州辅助工...
一直以来!樱花之盛有没有挂,麻... 您好,樱花之盛有没有挂这款游戏可以开挂的,确实是有挂的,需要了解加去威信【485275054】很多玩...
透视软件!凑一桌游戏关春天辅助... 透视软件!凑一桌游戏关春天辅助,微信微乐小程序有窍门吗(开挂)真是有挂(有挂教程)-哔哩哔哩1、下载...
据通报!aapoker透视方法... 据通报!aapoker透视方法,aapoker辅助器怎么用(透视)要领脚本(真是有挂)-哔哩哔哩aa...
有了最新消息!微乐河北自建房脚... 有了最新消息!微乐河北自建房脚本免费入口,大菠萝辅助器(透视)器-好像真的有挂小薇(辅助器软件下载)...
今天下午!wepoker科技辅... 今天下午!wepoker科技辅助器,如何下载德普之星辅助软件(透视)模块教程(一直真的有挂)1、下载...
透视模拟器!贪玩互娱辅助,微信... 透视模拟器!贪玩互娱辅助,微信微乐游戏辅助器(开挂)一贯存在有挂(有挂规律)-哔哩哔哩透视模拟器!贪...
昨日!wpk插件,有哪些免费的... 昨日!wpk插件,有哪些免费的wpk透视码(透视)教材脚本(切实真的有挂)-哔哩哔哩1、超多福利:超...
有了最新消息!hhpoker脚... 有了最新消息!hhpoker脚本,wepoker私人局透视插件(透视)方针教程(好像有挂)1、全新机...
随着!小程序牵手跑得辅助,微信... 随着!小程序牵手跑得辅助,微信小程序微乐房间怎么开挂(透视)软件-确实是有挂1、用户打开应用后不用登...