Mac + texstudio
该文件存储该文章的所有参考文献的bibtex
例如,要引用的一篇参考文献的内容如下:
@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}
}
\usepackage{cite}
在latex文档里添加bibtex库(ref.bib)的引用,要在哪里显示参考文献,就在哪里添加如下内容
\bibliographystyle{plain}
\bibliography{ref} %这里的这个ref就是对文件ref.bib的引用
\bibliography{ref}命令用于指定之前生成的.bib库。
其中\bibliographystyle{plain}指定参考文献的呈现方式,常见的预设样式的可选项有8种,分别是:
注意:可能你一开始使用的是plain style,然后当你更换为ieeetr之后,编号仍然是乱的,原因可能是存在缓存机制。解决方案是:把除了latex,bib等文件之外的缓存文件全部删除,然后再重新编译就好了!
引用格式如下:
\cite{fudenberg_game_1991}
其中花括号里面的内容为相关文献的引用格式的第一行内容
看到有些博客讲,要多次编译。但是在Mac + Texstudio这个环境中,是不需要这样的。
可能这就是TexStudio的优势吧。注意编译器一定要和我设置的一样。
大家如果有什么问题的话,可以留言问我。
https://blog.csdn.net/m0_37041325/article/details/81171736