
[私は LaTex 初心者です。独学なので、扱いにくいところがあったらあらかじめお詫びします。]
授業のレポートを書こうとしており、bib ファイルを使用してソースを引用したいと考えています。基本的なことはできるのですが、何らかの理由で TeX Studio がドキュメントをコンパイルしてくれません。上部の「\begin{document}」行で止まっているようですが、その理由がわかりません。私の状況は次のとおりです。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[
backend=bibtex,
style=alphabetic,
sorting=nyt,
]{biblatex}
\bibliography{wage.bib}
\title{title}
\author{name}
\date{date}
\begin{document}
\maketitle
... [コンテンツ]
\printbibliography[title=Works Cited]
\end{document}
「! \field の使用をスキャン中にファイルが終了しました」というエラーが繰り返し表示され、「begin document」行が赤く強調表示されます。これが私の bib ファイルです:
@article{poverty,
author = "John Addison and Mickinley Blackburn",
title = "Minimum Wages and Poverty",
journal = "Industrial Labor Relations Review",
volume = "52",
number = "3",
pages = "891--921",
year = "1999",
}
@article{realwage,
author = "Orley Ashenfelter",
title = "Comparing Real Wage Rates",
journal = "American Economic Association",
volume = "102",
number = "2",
pages = "891--921",
year = "2012",
}
@article{hours,
author = "Kenneth Couch and David Wittenburg",
title = "The Resposne of Hours of Work to Increase in the Minimum Wage",
journal = "Southern Economic Journal",
volume = "68",
number = "1",
pages = "891--921",
year = "2001",
}
@article{profits,
author = "Mirko Draca and Stephen Machin and John Van Reenen",
title = "Minimum Wages and Firm Profitability",
journal = "American Economic Association",
volume = "3",
number = "1",
pages = "891--921",
year = "2011",
}
@article{ninefity,
author = "Joseph Sabia and RIchard Burkenhauser",
title = "Minimum Wages and Poverty: Will a 9.50 Federal Minimum IWage Really Help the Working Poor?",
journal = "Southern Economic Journal",
volume = "76",
number = "3",
pages = "891--921",
year = "2010",
}
@article{politics,
author = "Russell Sobel",
title = "Theory and Evidence on the Political Economy of the Minimum Wage",
journal = "Journal of Political Economy",
volume = "107",
number = "4",
pages = "891--921",
year = "1999",
}
この文書を問題なくコンパイルできたのは、それほど昔のことではありません。この問題は、いくつかのソース (実際は、bib ファイルの最後の 2 つのソース) をコピーして bib ファイルに貼り付けたときに発生しました。引用符ではなく中括弧が使用されていることに気付きました。しかし、これを修正した後も、文書は印刷されません。これは非常にイライラします。biber / bibtex オプションをいろいろ試してみましたが、効果はありませんでした。どこかで、オプション - TeX の構成 - ビルド - 既定のコンパイラでコンパイル順序を変更する必要があると読んだのですが、このオプションが何なのかよくわかりませんし、あまり効果がないようです。
さらに、参考文献を作成したとき、参考文献には論文内で引用した内容のみが印刷され、bib ファイルに実際に記載されたすべてのソースが印刷されないことに気付きました。これもイライラさせられました。
要約すると、私は bib ファイル内のすべてのソースをアルファベット順に表示して、このドキュメントを印刷/コンパイルしたいだけです。論文の内容はすでに準備されており、問題はコンパイルだけです。
どのような助けでもいただければ幸いです。
答え1
デフォルトでは引用元のみが含まれます。すべてを含めたい場合は、
\nocite{*}
どこかに。
エラーを回避するには、生成されたファイルを削除する必要があるかもしれません。.bbl
、、.blg
および.bcf
/または.aux
ファイルを削除して、再コンパイルしてみてください。エディターが正しいバックエンドを使用していることを確認する必要があります。つまり、biber
(または何も指定しない場合) を指定すると、 を使用する必要がありますbiber
。 を指定するとbibtex
、 を使用する必要がありますbibtex
。
ここに、すべてのソースが含まれた、あなたのコードの私のバージョンがあります。
\begin{filecontents}{\jobname.bib}
@article{poverty,
author = "John Addison and Mickinley Blackburn",
title = "Minimum Wages and Poverty",
journal = "Industrial Labor Relations Review",
volume = "52",
number = "3",
pages = "891--921",
year = "1999",
}
@article{realwage,
author = "Orley Ashenfelter",
title = "Comparing Real Wage Rates",
journal = "American Economic Association",
volume = "102",
number = "2",
pages = "891--921",
year = "2012",
}
@article{hours,
author = "Kenneth Couch and David Wittenburg",
title = "The Resposne of Hours of Work to Increase in the Minimum Wage",
journal = "Southern Economic Journal",
volume = "68",
number = "1",
pages = "891--921",
year = "2001",
}
@article{profits,
author = "Mirko Draca and Stephen Machin and John Van Reenen",
title = "Minimum Wages and Firm Profitability",
journal = "American Economic Association",
volume = "3",
number = "1",
pages = "891--921",
year = "2011",
}
@article{ninefity,
author = "Joseph Sabia and RIchard Burkenhauser",
title = "Minimum Wages and Poverty: Will a 9.50 Federal Minimum IWage Really Help the Working Poor?",
journal = "Southern Economic Journal",
volume = "76",
number = "3",
pages = "891--921",
year = "2010",
}
@article{politics,
author = "Russell Sobel",
title = "Theory and Evidence on the Political Economy of the Minimum Wage",
journal = "Journal of Political Economy",
volume = "107",
number = "4",
pages = "891--921",
year = "1999",
}
\end{filecontents}
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[
backend=bibtex,
style=alphabetic,
sorting=nyt,
]{biblatex}
\bibliography{\jobname.bib}
\title{title}
\author{name}
\date{date}
\begin{document}
\maketitle
\nocite{*}
\printbibliography[title=Works Cited]
\end{document}
biber
ただし、よりも が推奨されるため、にbibtex
変更することをお勧めします。backend=bibtex
backend=biber
同様の結果が生成されます。