Latex 似乎没有生成任何参考书目。我使用最小的工作示例:
\documentclass{article}
\begin{document}
\bibliographystyle{plain}
\citet{Blavatskyy2011}
\bibliography{library}
\end{document}
我收到的错误是:
Undefined control sequence.
该 library.bib
文件与 位于同一目录中 .tex file
。我在 Mac OS X 上使用 TexShop,该 .bib
文件是用 Menedeley 创建的。示例条目为:
@article{Blavatskyy2011,
author = {Blavatskyy, Pavlo R.},
doi = {10.1287/mnsc.1100.1285},
file = {:Users/Chris/Desktop/Mendeley Desktop/2011\_Blavatskyy\_A Model of Probabilistic Choice Satisfying First-Order Stochastic Dominance\_Management Science.pdf:pdf},
issn = {0025-1909},
journal = {Management Science},
keywords = {2010,2011,accepted october 19,advance january 28,by peter wakker,decision analysis,first-order stochastic dominance,history,online in articles in,probabilistic choice,published,random utility,received march 8,strong utility},
month = mar,
number = {3},
pages = {542--548},
title = {{A Model of Probabilistic Choice Satisfying First-Order Stochastic Dominance}},
url = {http://pubsonline.informs.org/doi/abs/10.1287/mnsc.1100.1285},
volume = {57},
year = {2011}
可能存在什么问题?Mendeley 导出?TexShop?其他?
答案1
你没有说哪个控制序列未定义,但问题很可能是你没有加载包natbib
。该\citet
命令未由 LaTeX-core 定义,所以我猜是控制序列未定义。因此,添加
\usepackage{natbib}
回到序言。
您还应该将 更改为\bibliographystyle
,plainnat
这是natbib
的样式版本plain
。