LaTex如何自动生成参考文献

制作.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}
}
......

在.tex文件末尾增加两行:

\bibliographystyle{IEEEtran}
\bibliography{ref}

注释掉:

%\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

在需要引用的地方输入:

~\cite{goodfellow2014generative}  % bib文件中每个参考文献的第一项

编译:PDFLaTex ——>BibTex——>PDFLaTex——>PDFLaTex

猜你喜欢

转载自blog.csdn.net/qq_33033367/article/details/81461029