118 lines
9.9 KiB
Markdown
118 lines
9.9 KiB
Markdown
---
|
|
title: Snow Leopardでlatexを使えるようにする
|
|
author: kazu634
|
|
date: 1969-12-31
|
|
wordtwit_post_info:
|
|
- 'O:8:"stdClass":13:{s:6:"manual";b:0;s:11:"tweet_times";i:1;s:5:"delay";i:0;s:7:"enabled";i:1;s:10:"separation";s:2:"60";s:7:"version";s:3:"3.7";s:14:"tweet_template";b:0;s:6:"status";i:2;s:6:"result";a:0:{}s:13:"tweet_counter";i:2;s:13:"tweet_log_ids";a:1:{i:0;i:4773;}s:9:"hash_tags";a:0:{}s:8:"accounts";a:1:{i:0;s:7:"kazu634";}}'
|
|
categories:
|
|
- LaTeX
|
|
- Mac
|
|
|
|
---
|
|
<div class="section">
|
|
<p>
|
|
結構はまってしまったので、書いておきます。
|
|
</p>
|
|
|
|
<h4>
|
|
対象とする人
|
|
</h4>
|
|
|
|
<p>
|
|
Snow Leopardを用いてLatexを使いたい人。texソースはUTF8な人。
|
|
</p>
|
|
|
|
<h4>
|
|
Latexのダウンロード
|
|
</h4>
|
|
|
|
<p>
|
|
<a href="http://www2.kumagaku.ac.jp/teacher/herogw/" onclick="__gaTracker('send', 'event', 'outbound-article', 'http://www2.kumagaku.ac.jp/teacher/herogw/', 'JIS X0212 for pTeX');" target="_blank">JIS X0212 for pTeX</a>から「Drag & Drop pTeX」をダウンロードしてきます。ダウンロードしたら、
|
|
</p>
|
|
|
|
<p>
|
|
<a href="http://flickr.com/photos/42332031@N02/3910763253/" onclick="__gaTracker('send', 'event', 'outbound-article', 'http://flickr.com/photos/42332031@N02/3910763253/', '');" title="Latex Installation"><img src="http://farm4.static.flickr.com/3519/3910763253_f21d0a92f4.jpg" /></a>
|
|
</p>
|
|
|
|
<p>
|
|
from <a href="http://flickr.com/people/42332031@N02/" onclick="__gaTracker('send', 'event', 'outbound-article', 'http://flickr.com/people/42332031@N02/', 'kazu634');">kazu634</a>
|
|
</p>
|
|
|
|
<p>
|
|
pTexをアップリケーションフォルダにコピーします。コピー後、pTexをダブルクリックし、起動してください。
|
|
</p>
|
|
|
|
<h4>
|
|
実行
|
|
</h4>
|
|
|
|
<p>
|
|
platexコマンドを実行します。ここで注意が必要なのは、texのソースがutf8の場合、オプションをきちんと使用しないと文字化けするということです。
|
|
</p>
|
|
|
|
<pre class="syntax-highlight">
|
|
~/publish/default/pdf on kazu634 <span class="synStatement">[</span><span class="synConstant">399</span><span class="synStatement">]</span> $: platex <span class="synSpecial">--kanji=utf8</span> <span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.tex
|
|
This is pTeX, Version <span class="synConstant">3</span>.<span class="synConstant">141592</span>-p3.<span class="synConstant">1</span>.<span class="synConstant">10</span> <span class="synStatement">(</span>utf8.sjis<span class="synStatement">)</span> <span class="synStatement">(</span>Web2C <span class="synConstant">7</span>.<span class="synConstant">5</span>.<span class="synConstant">4</span><span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>./<span class="synConstant">2009</span><span class="synComment">蟷#08譛医螳#險育##.tex</span>
|
|
pLaTeX2e <span class="synStatement"><</span><span class="synConstant">2006</span>/<span class="synConstant">11</span>/<span class="synConstant">10</span><span class="synStatement">></span>+<span class="synConstant"></span> <span class="synStatement">(</span>based on LaTeX2e <span class="synStatement"><</span><span class="synConstant">2003</span>/<span class="synConstant">12</span>/<span class="synConstant">01</span><span class="synStatement">></span> patch level <span class="synConstant"></span><span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf/ptex/platex/jsclasses/jsarticle.cls
|
|
Document Class: jsarticle <span class="synConstant">2009</span>/<span class="synConstant">02</span>/<span class="synConstant">22</span> okumura
|
|
<span class="synStatement">)</span> <span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf/ptex/platex/misc/otf/otf.sty
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf/ptex/platex/misc/otf/ajmacros.sty<span class="synStatement">))</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf/ptex/platex/misc/otf/mlutf.sty<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf/ptex/platex/misc/otf/mlcid.sty<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/graphicx.sty
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/keyval.sty<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf/tex/latex/graphics/dvipdfmx-contrib-l
|
|
atex/graphics.sty
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/trig.sty<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/graphics.cfg<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/dvipdfm/dvipdfm.def<span class="synStatement">)))</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/hyperref/hyperref.sty
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/hyperref/pd1enc.def<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/hyperref/hyperref.cfg<span class="synStatement">)</span>
|
|
Implicit mode ON<span class="synStatement">;</span> LaTeX internals redefined
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf/ptex/latex/url/url.sty<span class="synStatement">))</span>
|
|
*hyperref using driver hdvipdfm*
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/hyperref/hdvipdfm.def<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/tools/tabularx.sty
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/tools/array.sty<span class="synStatement">))</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/float/float.sty<span class="synStatement">)</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty<span class="synStatement">)</span>
|
|
No file <span class="synConstant">2009</span><span class="synComment">蟷#08譛医螳#險育##.aux.</span>
|
|
<span class="synStatement">(</span>/Applications/pTeX.app/teTeX/share/texmf-dist/tex/latex/hyperref/nameref.sty<span class="synStatement">)</span>
|
|
<span class="synStatement">[</span><span class="synConstant">1</span><span class="synStatement">]</span> <span class="synStatement">(</span>./<span class="synConstant">2009</span><span class="synComment">蟷#08譛医螳#險育##.aux) )</span>
|
|
Output written on <span class="synConstant">2009</span><span class="synComment">蟷#08譛医螳#險育##.dvi (1 page, 4372 bytes).</span>
|
|
Transcript written on <span class="synConstant">2009</span><span class="synComment">蟷#08譛医螳#險育##.log.</span>
|
|
~/publish/default/pdf on kazu634 <span class="synStatement">[</span><span class="synConstant">400</span><span class="synStatement">]</span> $: <span class="synStatement">ls</span>
|
|
<span class="synConstant">2009</span>年<span class="synConstant">03</span>月の家計簿.pdf <span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.pdf Git入門.tex
|
|
<span class="synConstant">2009</span>年<span class="synConstant">04</span>月の家計簿.pdf <span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.tex Picture.bb
|
|
<span class="synConstant">2009</span>年<span class="synConstant">05</span>月の家計簿.pdf <span class="synConstant">2009</span>年<span class="synConstant">2</span>月の家計簿.pdf Picture.png
|
|
<span class="synConstant">2009</span>年<span class="synConstant">06</span>月の家計簿.pdf <span class="synConstant">2009</span>年<span class="synConstant">7</span>月の家計簿.pdf q.log
|
|
<span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.aux Account<span class="synStatement">(</span><span class="synConstant">200902</span><span class="synStatement">)</span>.pdf <span class="synStatement">test</span>.aux
|
|
<span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.dvi Debian Setting.pdf <span class="synStatement">test</span>.log
|
|
<span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.log Emacs Lisp Idioms.pdf <span class="synStatement">test</span>.tex
|
|
<span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.out Git入門.pdf 詫び状.pdf
|
|
~/publish/default/pdf on kazu634 <span class="synStatement">[</span><span class="synConstant">401</span><span class="synStatement">]</span> $: dvipdfmx <span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.dvi
|
|
<span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.dvi -<span class="synStatement">></span> <span class="synConstant">2009</span>年<span class="synConstant">08</span>月の家計簿.pdf
|
|
<span class="synStatement">[</span><span class="synConstant">1</span><span class="synStatement">]</span>
|
|
<span class="synConstant">25317</span> bytes written
|
|
</pre>
|
|
|
|
<p>
|
|
ターミナル上は文字化けしていますが、作成されたdviやpdfは文字化けしていませんでした。
|
|
</p>
|
|
|
|
<h4>
|
|
おまけ
|
|
</h4>
|
|
|
|
<p>
|
|
alias設定をしておくと簡単です:
|
|
</p>
|
|
|
|
<pre class="syntax-highlight">
|
|
<span class="synStatement">alias </span><span class="synIdentifier">platex</span><span class="synStatement">='</span><span class="synConstant">platex --kanji=utf8</span><span class="synStatement">'</span>
|
|
</pre>
|
|
</div>
|