#72
M1 チップMac にMacTeX をダウンロードしたので,そのメモ
1) Atom をインストールする
2) パッケージをインストールする
Atom を開き,Atom > Preference
を選択
左メニューの一番下「Install」から次のパッケージをインストール
3) Homebrew をインストール
ターミナルを開き下記サイトのコマンドをコピー brew.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
入力したらEnter を押す.インストールが完了したらHomebrew のパスを追加する必要がある.インストールが完了すると以下のような文言が出る.
==> Next steps: - Run these two commands in your terminal to add Homebrew to your PATH: echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/bin/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" - Run brew help to get started
指示通りにパスを以下のコマンドにて通す.
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/bin/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
Mac のGUI アプリをコマンドでインストールできるCaskを導入する.
brew tap homebrew/cask
4)MacTeX をインストール
ターミナルで
brew install --cask mactex
と入力し,インストールされるまで待つ.
5) Atom側で設定
Atom > Preference > Packages > letex
を選択.
latex のSetting を選択し, Engine
を uplatex
に設定.
さらに Output Format
を pdf
, PDF Producer
を dvipdfmx
に設定.
以下は生成するpdf のプレビューに関する設定なのでお好みで.
Move Result to Source Directory
Build on Save
をチェックし, Open Result after Successful Build
, Open Result in Background
のチェックを外す.
以上で設定は完了.
任意のディレクトリ にmain.tex
を作成し,command
+ S
でコンパイルできるか確かめてみる.
\documentclass[uplatex]{jsarticle} \begin{document} Hello,\LaTeX! \end{document}