一、TeXwords默认打开.tex文件,若要打开.bib或.aux文件,请看这里~
1.用TeXwords打开任意.tex文件,点击文件--打开--选择打开文件类型为所有类型
这样就可以啦~
二、latex中添加参考文献的两种方法
方法1:.tex文件中手动输入
\begin{thebibliography}{9}
\bibitem[Golub \& Van Loan(1989)]{Golub89} Golub, G. H. \& Van Loan, C. F. [1989] {\it Matrix
Comptations}, 2nd Ed. (Johns Hopkins University Press, USA).
\end{thebibliography}
这种方法扩展性较差,所以不推荐使用!
方法二:(推荐)
1.首先建立.bib文件并且位置放于.tex所在目录中,在文件中放入要引用的论文详细信息
例:
(1)书籍
book{jarl88,
author = "C. Jarlskog" ,
title = "CP Violation",
publisher = "World Scientific",
address = "Singapore",
year = "1988"}
(2)会议
@inproceedings{gupt97,
author = "R. K. Gupta and S. D. Senturia",
title = "Pull-in Time Dynamics as a Measure of Absolute Pressure",
booktitle = "Proc {IEEE} Int. Workshop on
Microelectromechanical Systems ({MEMS}'97)",
address = "Nagoya, Japan",
month = jan,
year = "1997",
pages = "290-294"}
(3)期刊
@article{re10,
author = "Bestbury, Bruce W.",
title = "{$R$}-matrices and the magic square",
journal = "J. Phys. A",
fjournal = "Journal of Physics. A. Mathematical and General",
volume = "36",
year = "2003",
number = "7",
pages = "1947--1959",
issn = "0305-4470",
coden = "JPHAC5",
mrclass = "17B10",
mrnumber = "1 960 703"}
2.将.bib文件引入主文件.tex中
3.运行主文件.tex以及.aux,确保正文中引入参考文献
(1)运行主文件.tex(选择pdfLaTeX)
(2)上一步成功后,运行主文件后会生成.aux文件。使用TeXwords打开.aux文件并运行(选择BibTeX)
(3)上一步成功后,再次运行主文件.tex,此时正文生成的PDF中显示参考文献。
(4)正文中引用参考文献并实现跳转:
引入宏包:
\usepackage[colorlinks,
linkcolor=blue,
anchorcolor=blue,
citecolor=blue]{hyperref}
正文中引用位置:\cite{re10} 此处名称与.bib中参考文献名称一致