title: Mac上的VScode Latex环境配置,在ArXiv上学习LAtex
date: 2019-08-08 10:16:43
tags: latex
Mac 上的 VScode Latex 环境配置,在ArXiv上学习LAtex
1. 安装组件
## 使用homebrew 安装各种所需插件
## brew cask install mactex
## brew cask install skim
2. 安装VSCode 插件
-
安装LaTeX Workshop
-
安装语言支持环境LaTeX language support
3. 修改VScode latex 配置
-
进入VScode 设置,进入json 配置模式
-
增加以下配置或者直接粘贴
{ "window.zoomLevel": 1, "editor.fontSize": 13, "terminal.integrated.fontSize": 14, "terminal.integrated.lineHeight": 1.2, "explorer.confirmDelete": false, "git.enableSmartCommit": true, "git.autofetch": true, "workbench.editor.showTabs": true, // "latex-workshop.view.pdf.viewer": "tab", "latex-workshop.latex.recipes": [{ "name": "xelatex", "tools": [ "xelatex" ] }, { "name": "latexmk", "tools": [ "latexmk" ] }, { "name": "pdflatex -> bibtex -> pdflatex*2", "tools": [ "pdflatex", "bibtex", "pdflatex", "pdflatex" ] } ], "latex-workshop.latex.tools": [{ "name": "latexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "%DOC%" ] }, { "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": "bibtex", "command": "bibtex", "args": [ "%DOCFILE%" ] }], "latex-workshop.view.pdf.viewer": "tab", "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" ] }
4. ArXiv Latex 下载和学习
-
Other formats
-
下载并修改后缀为.zip
[图片上传失败...(image-987445-1565232168524)]
-
解压然后使用的VScode 打开
5. 编译&预览
- 预览之前需要编译 快捷键 alt+cmd+B
- 编译报错可能是有包没有下载下来