Font Warning が出る件
LaTeX Font Warning: Font shape `JT1/gt/m/it' undefined
と怒られた。参考文献を入れなければちゃんとコンパイル出来る。
原因は、bibtexで日本語イタリックみたいなフォントを呼び出しているけど、そのフォントが無いってことらしい。
解決策は大まかに2つあり、
「定義が無いんだから、ダミーで定義してあげてその場を凌ぐ派」と、「フォントを入れてあげる派」が見つかった。
どうするか迷ってたところで、ちょっとマイナーな解決策、「vim-latexに、その警告を無視させる」という方法を見つけたのでメモしておく。
VimでTeXを書くにあるように、.vimrcに
let g:Tex_IgnoredWarnings = \"Underfull\n". \"Overfull\n". \"specifier changed to\n". \"You have requested\n". \"Missing number, treated as zero.\n". \"There were undefined references\n". \"Citation %.%# undefined\n". \"LaTeX Font Warning:"
と書くが、依然同じエラーが出る。一番最後の行が、今回の警告を無視する呪文になってるはずなのにおかしい。
色々試したところ、この設定の後に
let g:Tex_IgnoreLevel = 8
と書かないと反映されないらしい。
このTex_IgnoreLevelは、Tex_IgnoredWarningsを何行読み込むかという数字で、0の場合は何も読み込まないので、すべての警告を表示するということになる。今回は8行あるので、8を設定しないと反映されない。
まとめると、.vimrcに
let g:Tex_IgnoredWarnings = \"Underfull\n". \"Overfull\n". \"specifier changed to\n". \"You have requested\n". \"Missing number, treated as zero.\n". \"There were undefined references\n". \"Citation %.%# undefined\n". \"LaTeX Font Warning:" let g:Tex_IgnoreLevel = 8
を書くことで問題解決。なるほど。
参考
http://vim-latex.sourceforge.net/documentation/latex-suite/customizing-compiling.html