1、制作.lib文件 ,内容如下所示:
@inproceedings{goodfellow2014generative,
title={Generative adversarial nets},
author={Goodfellow, Ian and Pouget-Abadie, Jean and Mirza, Mehdi and Xu, Bing and Warde-Farley, David and Ozair, Sherjil and Courville, Aaron and Bengio, Yoshua},
booktitle={Advances in neural information processing systems},
pages={2672--2680},
year={2014}
}
......
2、在.tex文件末尾增加两行:
\bibliographystyle{IEEEtran}
\bibliography{ref}
3、注释掉:
%\begin{thebibliography}{1}
%\bibitem{IEEEhowto:kopka}
%H.~Kopka and P.~W. Daly, \emph{A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus
% 0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
%\end{thebibliography
4、在需要引用的地方输入:
\cite{goodfellow2014generative} % bib文件中每个参考文献的第一项
5、编译:PDFLaTex ——>BibTex——>PDFLaTex——>PDFLaTex
- 用PDFLaTeX编译你的 .tex 文件 , 这是生成一个 .aux 的文件, 这告诉 BibTeX 将使用那些应用;
- 用BibTeX 编译 .bib 文件;
- 再次用PDFLaTeX 编译你的 .tex 文件,这个时候在文档中已经包含了参考文献,但此时引用的编号可能不正确;
- 最后用PDFLaTeX 编译你的 .tex 文件,如果一切顺利的话, 这是所有东西都已正常了。