Latex中如何引用参考文献

文章目录

  • Latex中如何引用参考文献
    • 环境介绍
    • 具体步骤
      • 1.创建一个文件命名为:ref.bib
      • 2.把要引用的文献的bibtex格式内容复制到ref.bib里
      • 3.在latex文档里添加cite包
      • 4.添加bibliography
      • 5.在文中添加引用
      • 6.将latex文档设置成主文档
      • 7.直接编译
    • Ref

Latex中如何引用参考文献

环境介绍

Mac + texstudio

具体步骤

1.创建一个文件命名为:ref.bib

该文件存储该文章的所有参考文献的bibtex

2.把要引用的文献的bibtex格式内容复制到ref.bib里

例如,要引用的一篇参考文献的内容如下:

@book{fudenberg_game_1991,
  address = {Cambridge, Mass},
  edition = {1 edition},
  title = {Game {{Theory}}},
  isbn = {978-0-262-06141-4},
  abstract = {This advanced text introduces the principles of noncooperative game theory in a direct and uncomplicated style that will acquaint students with the broad spectrum of the field while highlighting and explaining what they need to know at any given point.This advanced text introduces the principles of noncooperative game theory\rule{1em}{1pt}including strategic form games, Nash equilibria, subgame perfection, repeated games, and games of incomplete information\rule{1em}{1pt}in a direct and uncomplicated style that will acquaint students with the broad spectrum of the field while highlighting and explaining what they need to know at any given point. The analytic material is accompanied by many applications, examples, and exercises. The theory of noncooperative games studies the behavior of agents in any situation where each agent's optimal choice may depend on a forecast of the opponents' choices. "Noncooperative" refers to choices that are based on the participant's perceived selfinterest. Although game theory has been applied to many fields, Fudenberg and Tirole focus on the kinds of game theory that have been most useful in the study of economic problems. They also include some applications to political science. The fourteen chapters are grouped in parts that cover static games of complete information, dynamic games of complete information, static games of incomplete information, dynamic games of incomplete information, and advanced topics.},
  language = {English},
  publisher = {{The MIT Press}},
  author = {Fudenberg, Drew and Tirole, Jean},
  month = aug,
  year = {1991}
}

3.在latex文档里添加cite包

\usepackage{cite}

4.添加bibliography

在latex文档里添加bibtex库(ref.bib)的引用,要在哪里显示参考文献,就在哪里添加如下内容

\bibliographystyle{plain}
\bibliography{ref} %这里的这个ref就是对文件ref.bib的引用

\bibliography{ref}命令用于指定之前生成的.bib库。

其中\bibliographystyle{plain}指定参考文献的呈现方式,常见的预设样式的可选项有8种,分别是:

  1. plain,按字母的顺序排列,比较次序为作者、年度和标题;
  2. unsrt,样式同plain,只是按照引用的先后排序;好吧,说是这么说,貌似没用
  3. alpha,用作者名首字母+年份后两位作标号,以字母顺序排序;
  4. abbrv,类似plain,将月份全拼改为缩写,更显紧凑;
  5. ieeetr,国际电气电子工程师协会期刊样式; 这个是按照引用的先后顺序来编号的。
  6. acm,美国计算机学会期刊样式;
  7. siam,美国工业和应用数学学会期刊样式;
  8. apalike,美国心理学学会期刊样式;

注意:可能你一开始使用的是plain style,然后当你更换为ieeetr之后,编号仍然是乱的,原因可能是存在缓存机制。解决方案是:把除了latex,bib等文件之外的缓存文件全部删除,然后再重新编译就好了!

5.在文中添加引用

引用格式如下:

\cite{fudenberg_game_1991}

其中花括号里面的内容为相关文献的引用格式的第一行内容

6.将latex文档设置成主文档

Latex中如何引用参考文献_第1张图片
当然这里可以设置,也可以不设置,最好设置一下吧。以防出错。

7.直接编译

看到有些博客讲,要多次编译。但是在Mac + Texstudio这个环境中,是不需要这样的。
可能这就是TexStudio的优势吧。注意编译器一定要和我设置的一样。
Latex中如何引用参考文献_第2张图片
大家如果有什么问题的话,可以留言问我。

Ref

https://blog.csdn.net/m0_37041325/article/details/81171736

你可能感兴趣的:(MarkDown&Latex)