LoginSignup
7
7

More than 5 years have passed since last update.

Mac(Mountain Lion)にMacTeX-2012を入れてみる

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.dvihello.auxhello.logの3つのファイルが作成される。

ターミナルで

$ dvipdfmx hello.dvi

すると、hello.pdfが作成される。

参照

MacTeX 2012 で日本語
TeX Wiki Mac
2012年、Mac(Lion)とTeXと日本語と、あとhomebrew

7
7
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
7
7