BibTeX是一种格式和一个程序,用于协调LaTeX的参考文献处理.BibTeX使用数据库的的方式来管理参考文献.BibTeX文件的后缀名为.bib.先来看一个例子
article{name1,author={作者,多个作者用and连接},title={标题},journal={期刊名},volume={卷20},number={页码},year={年份},abstract={摘要,这个主要是引用的时候自己参考的,这一行不是必须的}}book{name2,author="作者",year="年份",title="书名",publisher="出版社名称"}说明:1.第一行article告诉BibTeX这是一个文章类型的参考文献.还有其它格式,例如article,book,booklet,conference,inbook,incollection,inproceedings,manual,misc,mastersthesis,phdthesis,proceedings,techreport,unpublished等等.2.接下来的"name1",就是你在正文中应用这个条目的名称.3.其它就是参考文献里面的具体内容啦.每个参考文献是一个记录,由一个唯一的ID(例如下面的MartinDSP00)描述。比如我的myreference.bib文件里一条典型的文献是这样的:
article{MartinDSP00,author="A.MartinandM.Przybocki",title="The{NIST}speakerrecognitionevaluation---anoverview",journal="DigitalSignalProcessing",volume="10",pages="1--18",year="",}其中{NIST}中的大括号不会被显示,它的作用是保证将来的生成的参考文献中NIST四个字保持原样,不会被小写。2.需要引用文献的时候,在正文里加入:\bibliographystyle{ieeetr}\bibliography{myreference}
就可以用\cite{}来引用文献库中的论文了,如\cite{MartinDSP00}。上面第一行是控制文献显示格式的,这个后面再讲。此时,myreference.bib文件在正文tex文件的同一目录下,以保证LaTeX可以找到该bib文件。3.编译正文之后,生成aux文件,然后用bibtex在当前目录生成bbl文件,再编译正文两次,完整的dvi就生成了。这样,LaTeX保证了所有用\cite引用到的文献都已被列出,并且自动编号。同时,如果没有用\nocite命令,LaTeX还保证所有列出的参考文献都在正文中得到了引用
运行BibTeX分为下面四步*用LaTeX编译你的.tex文件,这是生成一个.aux的文件,这告诉BibTeX将使用那些应用.*用BibTeX编译.bib文件.*再次用LaTeX编译你的.tex文件,这个时候在文档中已经包含了参考文献,但此时引用的编号可能不正确.*最后用LaTeX编译你的.tex文件,如果一切顺利的话,这是所有东西都已正常了.
后面的类型可以是下面的article期刊杂志的论文
必要域:author,title,journal,year.
可选域:volume,number,pages,month,note.
book公开出版的图书
必要域:author/editor,title,publisher,year.
可选域:volume/number,series,address,edition,month,note.
booklet无出版商或作者的图书
必要域:title.
可选域:author,howpublished,address,month,year,note.
conference等价于inproceedings
必要域:author,title,booktitle,year.
可选域:editor,volume/number,series,pages,address,month,organization,publisher,note.
inbook书籍的一部分章节
必要域:author/editor,title,chapterand/orpages,publisher,year.
可选域:volume/number,series,type,address,edition,month,note.
incollection书籍中带独立标题的章节
必要域:author,title,booktitle,publisher,year.
可选域:editor,volume/number,series,type,chapter,pages,address,edition,month,note.
inproceedings会议论文集中的一篇
必要域:author,title,booktitle,year.
可选域:editor,volume/number,series,pages,address,month,organization,publisher,note.
manual技术文档
必要域:title.
可选域:author,organization,address,edition,month,year,note.
mastersthesis硕士论文
必要域:author,title,school,year.
可选域:type,address,month,note.
misc其他
必要域:none
可选域:author,title,howpublished,month,year,note.
phdthesis博士论文
必要域:author,title,year,school.
可选域:address,month,keywords,note.
proceedings会议论文集
必要域:title,year.
可选域:editor,volume/number,series,address,month,organization,publisher,note.
techreport教育,商业机构的技术报告
必要域:author,title,institution,year.
可选域:type,number,address,month,note.
unpublished未出版的论文,图书
必要域:author,title,note.
可选域:month,year.
赞赏