我在我的乳膠文件中添加了參考書目,如下所示:
...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
行和一個或多個引用之外還必須包含一行( \cite
)。
\documentclass{article}
\bibliographystyle{plain}
\begin{document}
...to the literature \cite{ahu61}
\bibliography{bibliography}
\end{document}
有許多現有的樣式:正確的選擇將取決於您的情況。