赞
踩
大约2019年5月的时候,我初次接触latex,想用latex写文档,不知道该如何引用参考文献。于是,我写下了这一篇文章。随着我知识的增长,经验的丰富,关于latex中如何引用参考文献这个问题已经随着情况的不同变得不再有难度。原因是,通常情况下,只有在有给定latex模板的时候,我们才能感受到使用latex编写文档带来的便利。如果我们的手中没有现成的模板而想写文档,在配置环境、插入文献这些地方就会花费很多时间,从而无法感到使用latex带来的便利和喜悦,我们才会问出这样的初级问题。
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。