8
1

BibTeXのエントリ種別 (article, inproceedings etc...)

Last updated at Posted at 2020-08-03

はじめに

最近$\LaTeX$を書いていて、BibTeXの書き方でつまづいたのでその内容についてまとめます。
具体的には、Bibファイルの文献情報を手書きで修正したらなにも表示されないことがありました。
実行環境はOverleafです。

そもそもBibTexとは?

こちらの記事がわかりやすかったので共有します。

起きた問題と解決方法

ネット上で収集した論文の情報をもとに以下のようなBibTeXを書いたところ、学会名 (journal) が出力されませんでした。

wrong.bib
@inproceedings{
    closedform,
    author = {Levin, Anat and Lischinski, Dani and Weiss, Yair},
    title = {A Closed Form Solution to Natural Image Matting},
    journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
    year = {2006},
    pages = {61–68},
}

理由は簡単で、 @inproceedingsというエントリ種別が、journalという項目をサポートしていないためです。
@inproceedings@articleなどの各エントリには書かなければいけない必須項目と、書いても良いオプション項目があります。
具体的には以下の通りです。

inproceedings
必須項目: author, title, booktitle, year
オプション項目: editor, pages, organization, publisher, address, month, note, key

article
必須項目: author, title, journal, year
オプション項目: volume, number, pages, month, note, key

Wikipediaを参考にしています)

これ以外の項目は、追加しても表示されないようです。ですので、さきほどの文献情報は以下のように書くと正しく出力されます。

correct.bib
@inproceedings{
    closedform,
    author = {Levin, Anat and Lischinski, Dani and Weiss, Yair},
    title = {A Closed Form Solution to Natural Image Matting},
    booktitle = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
    year = {2006},
    pages = {61–68},
}

おまけ

記事の冒頭で書いた$\LaTeX$という文字を出力するのにちょっと苦労したので書き方を載せておきます。

$\LaTeX$

これは以下のリンクを参考にしました。

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