Bibtex使用方法简要说明(linux)

您所在的位置:网站首页 bib是什么意思 Bibtex使用方法简要说明(linux)

Bibtex使用方法简要说明(linux)

2023-12-14 07:05| 来源: 网络整理| 查看: 265

第一步:创建.bib文件  格式如下:

以用{}包含具体内容 @article {name1, author = {作者, 多个作者用 and 连接}, title = {标题}, journal = {期刊名}, volume = {卷20}, number = {页码}, year = {年份}, } 也可以直接用双引号“”包含具体内容 @book {name2, author ="作者", year ="年份2008", title ="书名", publisher ="出版社名称" }

红色字体如article, book 表示所引用的参考文献的类型. bibtex共支持如下14种类型的参考文献,每种参考文献包括必须的条目(蓝色字体)也在后文中给出。接下来的"name1", 就是你在正文中引用这个文献的名称. 在文中,应当为/cite{name1}。

Bibliography entries included in a .bib file are split by types. The following types are understood by virtually all BibTeX styles:

参考文献类型说明Required fields 必填内容Optional fields 选填内容articleAn article from a journal or magazine.author, title, journal, yearvolume, number, pages, month, note, keybookA book with an explicit publisher.author/editor, title, publisher, yearvolume, series, address, edition, month, note, key, pagesbookletA work that is printed and bound, but without a named publisher or sponsoring institution.titleauthor, howpublished, address, month, year, note, keyconferenceThe same as inproceedings , included for Scribe compatibilityauthor, title, booktitle, yeareditor, pages, organization, publisher, address, month, note, keyinbookA part of a book, usually untitled. May be a chapter (or section or whatever) and/or a range of pages. author/editor, title, chapter/pages, publisher, yearvolume, series, address, edition, month, note, keyi ncollectionA part of a book having its own title.author, title, booktitle, yeareditor, pages, organization, publisher, address, month, note, keyinproceedingsAn article in a conference proceedings.author, title, booktitle, yeareditor, pages, organization, publisher, address, month, note, keymanualTechnical documentation.titleauthor, organization, address, edition, month, year, note, keymastersthesisA Master's thesis .author, title, school, yearaddress, month, note, keymiscFor use when nothing else fitsnoneauthor, title, howpublished, month, year, note, keyphdthesisA Ph.D. thesisauthor, title, school, yearaddress, month, note, keyproceedingsThe proceedings of a conference.title, yeareditor, publisher, organization, address, month, note, keyt ec hreportA report published by a school or other institution, usually numbered within a seriesauthor, title, institution, yeartype, number, address, month, note, keyunpublishedA document having an author and title, but not formally published.author, title, note  month, year, key

bibtex支持的参考文献的条目:

Item说明addressPublisher's address (usually just the city, but can be the full address for lesser-known publishers)annoteAn annotation for annotated bibliography stylesauthorThe name(s) of the author(s) (in the case of more than one author, separated byand )booktitleThe title of the book, if only part of it is being citedchapterThe chapter numbercrossrefThe key of the cross-referenced entryeditionThe edition of a book, long form (such as "first" or "second")editorThe name(s) of the editor(s)eprintA specification of an electronic publication, often a preprint or a technical reporthowpublishedHow it was published, if the publishing method is nonstandardinstitutionThe institution that was involved in the publishing, but not necessarily the publisherjournalThe journal or magazine the work was published inkeyA hidden field used for specifying or overriding the alphabetical order of entries (when the "author" and "editor" fields are missing). Note that this is very different from the key (mentioned just after this list) that is used to cite or cross-reference the entry.monthThe month of publication (or, if unpublished, the month of creation)noteMiscellaneous extra informationnumberThe "number" of a journal, magazine, or tech-report, if applicable. (Most publications have a "volume", but no "number" field.)organizationThe conference sponsorpagesPage numbers, separated either by commas or double-hyphens. For books, the total number of pages.publisher The publisher's nameschoolThe school where the thesis was writtenseriesThe series of books the book was published in (e.g. "The Hardy Boys " or "Lecture Notes in Computer Science ")title The title of the worktypeThe type of tech-report, for example, "Research Note"urlThe WWW addressvolumeThe volume of a journal or multi-volume bookyearThe year of publication (or, if unpublished, the year of creation) 第二步:在.tex文件中引用

1) 设置参考文献的类型 (bibliography style). 标准的为 plain:      /bibliographystyle{plain} 将上面的命令放在 LaTeX 文档的 /begin{document}后边. 其它的类型包括      unsrt -- 基本上跟 plain 类型一样, 除了参考文献的条目的编号是按照引用的顺序, 而不是按照作者的字母顺序.      alpha --类似于 plain 类型, 当参考文献的条目的编号基于作者名字和出版年份的顺序.      abbrv --缩写格式 . 2) 标记引用 (Make citations). 当你在文档中想使用引用时, 插入 LaTeX 命令     /cite{引用文章名称}  --"引用文章名称" 就是前边定义@article后面的名称. 3) 告诉 LaTeX 生成参考文献列表 . 在 LaTeX 的结束前输入      /bibliography{mybibfile}

第三步:编译

如果你的.tex文件名为myarticle.tex; 你的.bib文件名为mybibfile.bib

那么需要执行的命令如下:

latex myarticle.tex

bibtex myarticle

latex myarticle.tex

latex myarticle.tex

实例(源于[2]):

1. 建立.bib文件--mybibfile.bib

@misc{ Nobody06,

 author = "Nobody Jr",

 title = "My Article",

 year = "2006" }

2. 建立.tex文件myarticle.tex并在文中引用.bib文件

/documentclass[11pt]{article}

/usepackage{cite}

 /begin{document}

/title{My Article}

 /author{Nobody Jr.}

/date{Today}

/maketitle Blablabla said Nobody ~/cite{Nobody06}.

/bibliography{mybibfile}{}

/bibliographystyle{plain}

/end{document}

3. 编译:

[ysong@ECEL216D-2076 Desktop]$ latex myarticle.tex

 

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) entering extended mode   (./myarticle.tex LaTeX2e  Babel  and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded.   (/usr/share/texmf/tex/latex/base/article.cls   Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size11.clo)) (/usr/share/texmf/tex/latex/cite/cite.sty)   No file myarticle.aux.   LaTeX Warning: Citation `Nobody06' on page 1 undefined on input line 11. No file myarticle.bbl. [1] (./myarticle.aux)   LaTeX Warning: There were undefined references.)   Output written on myarticle.dvi (1 page, 468 bytes).   Transcript written on myarticle.log.   

 

[ysong@ECEL216D-2076 Desktop]$ bibtex myarticle

This is BibTeX, Version 0.99c (Web2C 7.5.4) The top-level auxiliary file: myarticle.aux The style file: plain.bst Database file #1: mybibfile.bib   

 

[ysong@ECEL216D-2076 Desktop]$ latex myarticle.tex

 

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) entering extended mode (./myarticle.tex LaTeX2e  Babel  and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls   Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size11.clo)) (/usr/share/texmf/tex/latex/cite/cite.sty) (./myarticle.aux) LaTeX Warning: Citation `Nobody06' on page 1 undefined on input line 11. (./myarticle.bbl) [1] (./myarticle.aux)   LaTeX Warning: There were undefined references.   LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.)   Output written on myarticle.dvi (1 page, 592 bytes).   Transcript written on myarticle.log.   

 

[ysong@ECEL216D-2076 Desktop]$ latex myarticle.tex

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) entering extended mode   (./myarticle.tex LaTeX2e  Babel  and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls   Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size11.clo)) (/usr/share/texmf/tex/latex/cite/cite.sty) (./myarticle.aux) (./myarticle.bbl) [1] (./myarticle.aux) )   Output written on myarticle.dvi (1 page, 548 bytes).   Transcript written on myarticle.log.  

生成的PDF文件如下图所示

mybib_pdf  [1] BibTeX使用介绍

[2] http://www.bibtex.org/Format

[3] http://en.wikipedia.org/wiki/BibTeX

[4] http://bbs.ctex.org/viewthread.php?tid=26056



【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3