Mac上的VScode Latex环境配置,在ArXiv上学习LAtex


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

  1. 安装LaTeX Workshop

    image-20190808102440857
  2. 安装语言支持环境LaTeX language support

    image-20190808102356775

3. 修改VScode latex 配置

  1. 进入VScode 设置,进入json 配置模式

    image-20190808102810548
  2. 增加以下配置或者直接粘贴

    {
        "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 下载和学习

  1. Other formats

    image-20190808103447759
  2. 下载并修改后缀为.zip

    [图片上传失败...(image-987445-1565232168524)]

  3. 解压然后使用的VScode 打开

    image-20190808103618152

5. 编译&预览

  1. 预览之前需要编译 快捷键 alt+cmd+B
  2. 编译报错可能是有包没有下载下来
image-20190808103948018

你可能感兴趣的:(Mac上的VScode Latex环境配置,在ArXiv上学习LAtex)