LaTeX > 様々なエラー

更新日 2016-03-5
広告
LaTeXを使用していて遭遇したエラーについてまとめます。

Metric file not found.

\texttt{hoge}
上記のように texttt を使うとエラーが出る場合があります。
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input pcrr7t'
 failed to make pcrr7t.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font OT1/pcr/m/n/10=pcrr7t at 10.0pt not loadable: Metric (TFM) file not found.
これは、TeX Liveを使用して解決できます。
$ sudo tlmgr install courier

style not found.

スタイルファイルが見つからないとき、以下のエラーが表示されます。
File subfigure.sty not found.
これは、subfigureというスタイルが見つからないというエラーです。 TeX Liveで解決できます。
$ sudo tlmgr install subfigure
広告
お問い合わせは sweng.tips@gmail.com まで。
inserted by FC2 system