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文件

在这里插入图片描述

相关内容

热门资讯

黑科技私人局!wepower透... 黑科技私人局!wepower透视外挂,aapoker辅助工具存在,细节方法(有挂助手)-哔哩哔哩;一...
6分钟知晓!wpk透视脚本,w... 6分钟知晓!wpk透视脚本,wepoker有脚本吗(透视)新2025版(有挂神器)1、wepoker...
玩家亲测!搜索词,wpk德州a... 玩家亲测!搜索词,wpk德州ai机器人,细节揭秘(有挂技术)-哔哩哔哩;wpk德州ai机器人软件透明...
第八分钟普及!hh poker... 第八分钟普及!hh poker软件,wepoker买脚本靠谱吗(透视)可靠技巧(有挂教学)1、超多福...
黑科技游戏!aapoker发牌... 黑科技游戏!aapoker发牌逻辑,德州游戏辅助器,揭秘教程(有挂教程)-哔哩哔哩;1、完成德州游戏...
第3分钟透明挂!hhpoker... 第3分钟透明挂!hhpoker透视挂码怎么用,hhpoker辅助软件下载(透视)力荐教程(有挂技巧)...
推荐一款!德州ai辅助神器ap... 推荐一款!德州ai辅助神器app,微扑克真的有辅助,扑克教程(有挂方针)-哔哩哔哩;亲,有的,ai轻...
第1分钟黑科技!pokemmo... 第1分钟黑科技!pokemmo内置修改器,wepokerplus万能挂(透视)wepoke教程(有挂...
分享实测!德州可能有外挂,wo... 分享实测!德州可能有外挂,wopoker分析器,力荐教程(有挂详细)-哔哩哔哩;德州可能有外挂免费下...
十分钟精通!wepoker透视... 十分钟精通!wepoker透视底牌脚本,aapoker怎么设置提高好牌几率(透视)必备教程(有挂方法...