使用texstudio,遇到的一个小错误
源代码:
\begin{thebibliography}{}
\bibliographystyle{aaa} % template
\bibliography{references} % references
%
% and use \bibitem to create references. Consult the Instructions
% for authors for reference list style.
%
\item{a}
% Format for Journal Reference
Author, Article title, Journal, Volume, page numbers (year)
% Format for books
%\bibitem{b}
Author, Book title, page numbers. Publisher, place (year)
% etc
\end{thebibliography}
报错:
Something's wrong--perhaps a missing \item. \begin{thebibliography}{1}
查了许久都没找到原因,网上的方法也不对,后来才发现自己犯了一个低级错误:模板文件和bib文件放错了位置。
解决方案:将
\bibliographystyle{spbasic} % template
\bibliography{references} % references
放在
\begin{thebibliography}{}
\end{thebibliography}
这个区间前面就好了。