LaTex如何自動生成參考文獻
阿新 • • 發佈:2019-02-09
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 檔案,如果一切順利的話, 這是所有東西都已正常了。