0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MacのSublime TextでLaTeX環境構築.備忘録

Last updated at Posted at 2023-01-20

注意

個人的なメモのため、適当に書いていることがあります

環境

macOS Catalina (10.15.7)
Sublime Text (Build 4143)
Homebrew 3.6.20

インストール

コマンド

BrewでMacTex, Skimをインストール
MacTexはTexで, Skimはpdfを見るアプリ

brew install --cask mactex
brew install --cask skim

Sublime

パッケージ「LaTexTools」をインストール
パッケージのリンク: https://latextools.readthedocs.io/en/latest/

Sublime Text / Preferences / LaTexTools / Settings-User
最初は何か言われるけど無視でok

398行目, "builder-settings"の中に以下を追記

		"command" : ["latexmk", "-cd",
				"-e", "$latex = 'platex %O -no-guess-input-enc -kanji=utf8 -interaction=nonstopmode -synctex=1 %S'",
				"-e", "$biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'",
				"-e", "$bibtex = 'pbibtex %O %B -kanji=utf8'",
				"-e", "$makeindex = 'upmendex %O -o %D %S'",
				"-e", "$dvipdf = 'dvipdfmx %O -o %D %S'",
				"-f", "-%E", "-norc", "-gg", "-pdfdvi"],

終わり、テスト

latex テスト って調べて一番上に出てきたサイトで試してみた

ショートカットキー: cmd + b
選択画面が出てくるので、一番上(LaTex)でビルド
Skimが出てきたらOK

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?