MacでTexの数式を!LaTeXiTを使えるようになるまで
移転しました →
HomebrewでTexをインストール
MacBookAirにTeXを入れなおした話。| えじの自由帳
% brew tap phinze/cask
% brew install brew-cask
% brew cask install mactex
/usr/texbin
にパスを通す% 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.appを起動して環境設定を開き、プログラムタブを開いてみるとどうやら先程インストールしたMacTexのディレクトリに設定が通っているようだ。
早速入力欄に数式を打って右下の「LaTeX it!」してみるとこうなった。
上にある数式をドラッグアンドドロップで別アプリケーションに持っていくこともできる。これはすごい。
Texに関しては卒論・修論でこの本にお世話になった。当時は第2版か第3版だった記憶がある。もう第6版にもなっているのね。
![[改訂第6版] LaTeX2ε美文書作成入門 [改訂第6版] LaTeX2ε美文書作成入門](http://ecx.images-amazon.com/images/I/51UNf22nkGL._SL160_.jpg)
- 作者: 奥村晴彦,黒木裕介
- 出版社/メーカー: 技術評論社
- 発売日: 2013/10/23
- メディア: 大型本
- この商品を含むブログ (14件) を見る