More than 5 years have passed since last update.
@c8112002(c8112002)in👁 Image
株式会社アクシスルートホールディングス
株式会社アクシスルートホールディングス
Mac(Mountain Lion)にMacTeX-2012を入れてみる
7
Last updated at Posted at 2013-03-19
さすがに、そろそろ論文を書かなきゃということでTeXを入れる。
MacTeXはTeXのGUIソフトのTeXShopとかその他いろいろなものをパッケージしてくれてるものらしい。
インストール
ここでMacTeX.pkg をダウンロードしてきて、インストール。
Hello World
hello.texを以下の内容で作成
hello.tex
\documentclass{jarticle}
\begin{document}
Hello, world!
\end{document}
ターミナルで
$ platex hello.tex
※ /usr/texbinにbashのパスが通ってなかったので、.bashrcにパスを追加。(ここには手動でパスを通す必要はないって書いてあったけど・・・。)
これで、hello.texと同じディレクトリにhello.dvi、hello.aux、hello.logの3つのファイルが作成される。
ターミナルで
$ dvipdfmx hello.dvi
すると、hello.pdfが作成される。
参照
・MacTeX 2012 で日本語
・TeX Wiki Mac
・2012年、Mac(Lion)とTeXと日本語と、あとhomebrew
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
