在LaTeX中使用BibTeX(笔记)

该博客介绍了BibTeX参考文献的引用步骤。首先新建.bib格式文件,如paper.bib;接着将BibTeX格式参考文献粘贴到该文件中;然后在\end{document}之前插入;最后在文章中进行引用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值