BibTeXとSublime Textの連携
TeXで論文執筆する際,参考文献の編集をするのに便利.
Sublime textで,ツール→Build System→New Build System...
で以下の内容のファイルを作成
{
"cmd": ["upbibtex", "$file_base_name"],
"selector": "text.tex.latex",
"working_dir": "$file_path",
"cmd": ["upbibtex", "$file_base_name"],
"selector": "text.tex.latex",
"working_dir": "$file_path",
"variants":
[
[
{
"name": "BibTeX",
"shell": true,
"windows":
{
"cmd": ["start", "cmd", "/c", "echo === & echo $file_base_name & echo. & upbibtex $file_base_name & echo. & pause"],
}
}
]
}
"name": "BibTeX",
"shell": true,
"windows":
{
"cmd": ["start", "cmd", "/c", "echo === & echo $file_base_name & echo. & upbibtex $file_base_name & echo. & pause"],
}
}
]
}
MyTex.sublime-buildという名前で保存しておく.
Ctrl+Shift+bでTraditionalを選んで,ビルド.
.bibファイルに参考文献を追加した場合,Ctrl+Shift+bでMy Texを選択すると更新される.
おまけ
Google Scholarの各項目の最下段1番左の「,,」のマークをクリックするとbibtex用のコードが参照できる.