菜鸟笔记
提升您的技术认知

Latex插入参考文献的方法(两种全)

本人在使用Latex的过程中,经常会遇到插入参考文献的问题,特此在这里总结起来,主要是为了方便自己查找和copy来直接用,也希望对于大家有用!

第一种方法

添加.bib文件,关于.bib文件的生成,只需要在Latex中新建一个文件,然后把每一个参考文献在谷歌学术搜到的引用(谷歌学术搜到论文后点击那个小逗号)添加进去即可,如下:


生成的bib格式如下,其中文献名称可以自由更改

然后在文章中使用以下语句:

\bibliographystyle{
  unsrt} //参考文献格式,可自由调整!
\bibliography{
  refs}

之后在文章中使用\cite{reference}即可,例如~\cite{2017NNI}。

第二种方法

至于为什么要介绍第二种方法,说来也是无奈啊,按照道理来讲第一种方法非常的方便,但是有时候你架不住人家期刊会议要求多啊,人家规定了参考文献的格式就只能是一种,而第一种方法又不适合。

所以这里直接上第二种方法的代码:

\begin{
  thebibliography}{
  10}//代表最多可以插入多少参考文献
\bibitem{
  1993}C. S. Lent, P. D. Tougaw, W. Porod, and G. H. Bernstein, ``Quantum cellular automata," Nanotechnology, Vol. 4, No. 1, pp. 49, 1993.
\bibitem{
  2017NNI}A. Bharti and A. Sharma, ``Implementation of exor gate using qca with nni logic," IEEE WiSPNET, pp. 2027-2031, 2017.
\bibitem{
  1961}R. Landauer, "Irreversibility and heat generation in the computing process," IBM journal of research and development, Vol. 5, No. 3, pp. 183-191, 1961.
\bibitem{
  NNI-eq} K. Das and D. De, ``Characterization, test and logic synthesis	of novel conservative and reversible logic gates for qca," International Journal of Nanoscience, Vol. 9, No. 3, pp. 201-214, 2010.
\bibitem{
  2019base}J. C. Das and D. De, ``Novel design of reversible priority encoder in quantum dot cellular automata based on toffoli gate and feynman gate," The Journal of Supercomputing, Vol. 75, No. 10, pp. 6882-6903, 2019.
\bibitem{
  QCAdesigner}K. Walus, T. J. Dysart, G. A. Jullien, and R. A. Budiman, ``Qcadesigner: a rapid design and simulation tool for quantum-dot cellular automata," IEEE Trans. Nanotechnol., Vol. 3, No. 1, pp. 26-31, 2004.
\end{
  thebibliography}

最后向第一种方法一样,直接在文章中使用使用\cite{reference}即可,例如~\cite{2017NNI},即可引用文章并且能自动生成参考文献及引用顺序。