latex使用bibliography

latex使用bibliography

在使用latex的过程中,不可避免的要使用到参考文献。

1. 如何使用参考文献

在latex中使用参考文献分三步

  1. 使用\bibliographystyle确定参考文献的风格。
  2. 将参考文献写入.bib文件中,例如reference.bib
  3. .tex文件中使用\bibliography命令导入参考文献,例如\bibliography{reference}

2. .bib文件中的常见类型

  1. @article:期刊杂志的论文

    必要域: author, title, journal, year.

    可选域: volume, number, pages, month, note.

  2. @book:公开出版的图书

    必要域: author/editor, title, publisher, year.

    可选域: volume/number, series, address, edition, month, note.

  3. @booklet:无出版商或作者的图书

    必要域: title.

    可选域: author, howpublished, address, month, year, note.

  4. @inbook:书籍的一部分章节

    必要域: author/editor, title, chapter and/or pages, publisher, year.

    可选域: volume/number, series, type, address, edition, month, note.

  5. @incollection:书籍中带独立标题的章节

    必要域: author, title, booktitle, publisher, year.

    可选域: editor, volume/number, series, type, chapter, pages, address, edition, month, note.

  6. @conference :会议论文,等价于 inproceedings

    必要域: author, title, booktitle, year.

    可选域: editor, volume/number, series, pages, address, month, organization, publisher, note.

  7. @inproceedings:会议论文集中的一篇

    必要域: author, title, booktitle, year.

    可选域: editor, volume/number, series, pages, address, month, organization, publisher, note.

  8. @manual:技术文档

    必要域: title.

    可选域: author, organization, address, edition, month, year, note.

  9. @mastersthesis:硕士论文

    必要域: author, title, school, year.

    可选域: type, address, month, note.

  10. @misc:其他

    必要域: none

    可选域: author, title, howpublished, month, year, note.

  11. @phdthesis:博士论文

    必要域: author, title, year, school.

    可选域: address, month, keywords, note.

  12. @proceedings:会议论文集

    必要域: title, year.

    可选域: editor, volume/number, series, address, month, organization, publisher, note.

  13. @techreport:教育,商业机构的技术报告

    必要域: author, title, institution, year.

    可选域: type, number, address, month, note.

  14. @unpublished:未出版的论文,图书

    必要域: author, title, note.

    可选域: month, year.

这里主要参考内容[1]

3. 如何在.tex文件中使用

很简单,一般而言.bib文件中一篇参考文献大致格式如下:

@article{finnilaQuantumAnnealingNew1994,
	title = {Quantum annealing: {A} new method for minimizing multidimensional functions},
	volume = {219},
	issn = {0009-2614},
	shorttitle = {Quantum annealing},
	url = {http://www.sciencedirect.com/science/article/pii/0009261494001170},
	doi = {10.1016/0009-2614(94)00117-0},
	abstract = {Quantum annealing is a new method for finding extrema of multidimensional functions. Based on an extension of classical, simulated annealing, this approach appears robust with respect to avoiding local minima. Further, unlike some of its predecessors, it does not require an approximation to a wavefunction. We apply the technique to the problem of finding the lowest energy configurations of Lennard-Jones clusters of up to 19 particles (roughly 105 local minima). This early success suggests that this method may complement the widely implemented technique of simulated annealing.},
	language = {en},
	number = {5},
	urldate = {2021-01-09},
	journal = {Chemical Physics Letters},
	author = {Finnila, A. B. and Gomez, M. A. and Sebenik, C. and Stenson, C. and Doll, J. D.},
	month = mar,
	year = {1994},
	pages = {343--348},
	file = {ScienceDirect Snapshot:/home/sheffieldwang/paper/storage/LBJEN2QA/0009261494001170.html:text/html},
}

使用命令

\cite{finnilaQuantumAnnealingNew1994}

即可,即这个参考文献第一行的内容。

4. 如何编译

xelatex为例,需要编译四次,假如有个test.tex,需要四次编译

xelatex test.tex
bib text.aux
xelatex test.tex
xelatex test.tex

这样生成的pdf里就能看到参考文献了。

参考内容

[1]【Latex】bib的格式及文献类型

  • 7
    点赞
  • 40
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
使用LaTeX中引用参考文献时,如果你需要包含网址,可以使用`url`或`hyperref`宏包。下面是一种常见的方法: 1. 在导言区添加宏包引用: ```latex \usepackage{url} % 或者 \usepackage{hyperref} ``` 2. 在.bib文件中的相应条目中添加网址字段,例如: ```latex @article{example, title={Title of the article}, author={Author Name}, journal={Journal Name}, year={2021}, url={https://www.example.com} } ``` 3. 在正文中引用参考文献,并使用`\url`或`\href`命令来显示网址,例如: ```latex According to \cite{example}, the website is \url{https://www.example.com}. ``` 或者 ```latex According to \cite{example}, the website is \href{https://www.example.com}{https://www.example.com}. ``` 请注意,使用`\url`命令会自动将网址格式化为可点击的链接,而`\href`命令可以自定义链接文本。根据你的需求选择适合的命令即可。 #### 引用[.reference_title] - *1* [latex使用bibliography](https://blog.csdn.net/u013524048/article/details/115488817)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [【BIB文献管理】LATEX使用bib](https://blog.csdn.net/weixin_45492934/article/details/128729507)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Latex-bibtex使用方法](https://blog.csdn.net/qq_41744950/article/details/123719095)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值