LoginSignup
0
0

More than 3 years have passed since last update.

Mac に TeX 環境をインストールしてパッケージを追加する

Posted at

やりたいこと

Mac に TeX 環境を簡単にインストールしたかった。
コマンドは pdflatex とか pdftex あたりを使いたい

やったこと

主に、参考文献[1] の TeX Live 公式のインストーラの使用 のところを参考に、install-tl を使ってインストールした。

ただし、mirror.ctan.org は調子が悪かったので、 jaist のミラーサーバーを使用した。


wget http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
tar xvf install-tl-unx.tar.gz
sudo ./install-tl -no-gui -repository http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet/

これで、以下のような場所に pdflatex 等が一通り入る。
/usr/local/texlive/2019/bin/x86_64-darwin/pdflatex

パッケージのインストールは、 tlmgr を使用。

sudo tlmgr update --self --all  # アップデート
tlmgr info [pkg] # パッケージを探す
sudo tlmgr install [pkg] # パッケージをインストール

参考文献

[1] https://texwiki.texjp.org/?TeX%20Live%2FMac#texlive-install-official

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