1、新建文件.bib格式的文件,如paper.bib
2、将BibTeX格式的参考文献粘贴到paper.bib中,如下图
@article{einstein,
author = {Albert Einstein},
title = {Zur Elektrodynamik bewegter K{\"o}rper. (German)
[On the electrodynamics of moving bodies]},
journal = {Annalen der Physik},
volume = {322},
number = {10},
pages = {891--921},
year = {1905},
DOI = {http://dx.doi.org/10.1002/andp.19053221004}
}
@book{latexcompanion,
author = {Michel Goossens and Frank Mittelbach and Alexander Samarin},
title = {The LaTeX Companion},
year = {1993},
publisher = {Addison-Wesley},
address = {Reading, Massachusetts}
}
@misc{knuthwebsite,
author = {Donald Knuth},
title = {Knuth: Computers and Typesetting},
url = {http://www-cs-faculty.stanford.edu/~uno/abcde.html}
}
3、在\end{document}之前插入
\bibliographystyle{plainnat} % 选择你要用的格式
\bibliography{mybibfile} % 将mybibfile改为你的bib文件名,注意不加后缀
4、在文章中引用
\section{Introduction}
Einstein's theory of relativity \cite{einstein} and the book \cite{latexcompanion} are seminal works in their respective fields.
\section{Conclusion}
Knuth's website is a resource of information \cite{knuthwebsite}.