私は LaTeX ファイルに参考文献を次のように追加しました:
...to the literature \cite{ahu61}
\bibliography{bibliography}
私のbibliography.bib
見た目は次のようになります:
@article{ahu61,
author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
title={Constraint qualifications in maximization problems},
journal={Naval Research Logistics Quarterly},
volume={8},
year = 1961,
pages = {175-191}
}
引用文をそのままにしておくと
Texification succeeded: no errors!
However, there were warnings in your LaTeX source
./main.tex:231: LaTeX Warning: Citation `ahu61' on page 4 undefined on input line 231.
./main.tex: LaTeX Warning: There were undefined references.
参考文献もありません。
削除すると警告は表示されませんが、参考文献も表示されなくなります。
答え1
\bibliographystyle
「標準」を使用する最小限の LaTeX ファイルには、 行に加えて 行\bibliography
と 1 つ以上の引用 ( )が必要です\cite
。
\documentclass{article}
\bibliographystyle{plain}
\begin{document}
...to the literature \cite{ahu61}
\bibliography{bibliography}
\end{document}
既存のスタイルは多数存在しますが、正しい選択は状況によって異なります。