4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Mac mini (M1, 2020) で LaTeX の環境構築 (VSCode)

Posted at

前の記事 競プロ環境構築 に続きメモです。

参考にした記事です
https://qiita.com/uoyuki/items/c172235a0caf2f637ea4

##環境

  • Mac mini (2020, M1)
  • macOS BigSur 11.1

##手順

  • VSCode の拡張機能をインストール
    • TeX Workshop
  • TeX をインストール & アップデート
% brew install --cask tex-no-gui
% sudo tlmgr update --self --all

無限時間かかります。

  • setting.json に追加
    //Latex
    "latex-workshop.latex.tools": [
        {
            "command": "ptex2pdf",
            "args": [
                "-interaction=nonstopmode",
                "-l",
                "-ot",
                "-kanji=utf8 -synctex=1",
                "%DOCFILE%.tex"
            ],
            "name": "ptex2pdf"
        }
    ],
    "latex-workshop.latex.recipes": [
        {
            "name": "ptex2pdf",
            "tools": [
                "ptex2pdf"
            ]
        }
    ],
    "latex-workshop.latex.autoClean.run": "onFailed",
    "latex-workshop.view.pdf.viewer": "tab",
    "editor.renderControlCharacters": true,
  • VSCode を終了して (ウィンドウを閉じるだけではだめ) 再起動

できるようになりました、えらい。

##おわりに
ユーザスニペットをまた構築します。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?