ぴよログ

↓に移転したのでこっちは更新されません、多分。

MacでTexの数式を!LaTeXiTを使えるようになるまで

移転しました →

HomebrewでTexをインストール

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

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

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

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

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

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

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

% brew cask install mactex
Pruned 459 dead formulae
Warning: Could not tap phinze/cask/brew-cask over caskroom/cask/brew-cask
Tapped 460 formulae
==> Removing legacy Tap
==> Caveats
To use mactex, zsh users may need to add the following line to their
~/.zprofile.  (Among other effects, /usr/texbin will be added to the
PATH environment variable):

  eval `/usr/libexec/path_helper -s`

==> Downloading http://mirror.ctan.org/systems/mac/mactex/mactex-20140525.pkg
######################################################################## 100.0%%P
==> Running installer for mactex; your password may be necessary.
Password:
[==> installer: Package name is MacTeX-2014
==> installer: Installing at base path /
==> installer: The install was successful.
==> Sorry, try again.
🍺  mactex installed to '/opt/homebrew-cask/Caskroom/mactex/20140525' (2.3G)

LaTeXiT

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

LaTeXiT

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

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

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

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

[改訂第6版] LaTeX2ε美文書作成入門

[改訂第6版] LaTeX2ε美文書作成入門