HomebrewでTexをインストール

MacBookAirにTeXを入れなおした話。| えじの自由帳

  1. % brew tap phinze/cask
  • % brew install brew-cask
  • % brew cask install mactex
  • /usr/texbinにパスを通す
  • % sudo tlmgr update --self --all

% brew cask install mactexでエラーが出たので、

1% brew cask install mactex
2Warning: Trouble with automatic Tap migration. You may need to run "brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup"
3==> Adding caskroom Tap
4Error: No available cask for mactex
5Error: nothing to install

言われた通りのコマンドを実行。

1% brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

もう一度トライするとなんとかいけたみたい。Sorryとか言われているけど気にしない!

 1% brew cask install mactex
 2Pruned 459 dead formulae
 3Warning: Could not tap phinze/cask/brew-cask over caskroom/cask/brew-cask
 4Tapped 460 formulae
 5==> Removing legacy Tap
 6==> Caveats
 7To use mactex, zsh users may need to add the following line to their
 8~/.zprofile.  (Among other effects, /usr/texbin will be added to the
 9PATH environment variable):
10
11  eval `/usr/libexec/path_helper -s`
12
13==> Downloading http://mirror.ctan.org/systems/mac/mactex/mactex-20140525.pkg
14######################################################################## 100.0%%P
15==> Running installer for mactex; your password may be necessary.
16Password:
17[==> installer: Package name is MacTeX-2014
18==> installer: Installing at base path /
19==> installer: The install was successful.
20==> Sorry, try again.
21🍺  mactex installed to '/opt/homebrew-cask/Caskroom/mactex/20140525' (2.3G)

LaTeXiT

ここからdmgをダウンロードし、.appファイルをアプリケーションにコピー。

LaTeXiT

LaTeXit.appを起動して環境設定を開き、プログラムタブを開いてみるとどうやら先程インストールしたMacTexのディレクトリに設定が通っているようだ。

早速入力欄に数式を打って右下の「LaTeX it!」してみるとこうなった。

上にある数式をドラッグアンドドロップで別アプリケーションに持っていくこともできる。これはすごい。

Texに関しては卒論・修論でこの本にお世話になった。当時は第2版か第3版だった記憶がある。もう第6版にもなっているのね。