步骤:
- 使用百度学术/Google scholar搜索所有文件的bibtex格式引用,粘贴到同一个记事本中,另存为***.bib文件,每篇文章显示如下:
- 两种方法插入bib文件引用:
- 方法一:使用\cite:
(1) 在\begin{document}前加:
\usepackage{cite}
(2) 在需要引用的地方:
% 要引用的文献
\cite{Chen2019Machine}
\cite{Kushal2018Machine}
(3) 在\end{document}前加:
\bibliographystyle{plain}
% 这里的ref指的是第一步生成的ref.bib
\bibliography{ref}
\end{document}
- 方法二:使用\biblatex:
(1) 在\begin{document}前加:
% \usepackage{cite}
% biblatex 和cite会发生冲突需要注释掉
\usepackage{biblatex}
\addbibresource{ref.bib} %ref.bib是之前新建的.bib文件
(2)末尾加上:
\cite{Chen2019Machine}
\cite{Kushal2018Machine}
\printbibliography % 打印参考文章列表
- 编译成功