在latex中管理文献

来源:互联网 发布:ubuntu如何启动selinux 编辑:程序博客网 时间:2024/05/01 18:27
基本的处理流程就是这样,共有三步:
$ latex yourfile
$ bibtex your_ref
$ latex yourfile
$ latex yourfile
注意:上述命令中的文件名不需要给出后缀,bibtex尤其会自动添加。

在代码中就是用/bibiographystyle{}和/bibiography{}把bib数据库的内容连接进来;
在代码外部,就是要保证latex能够找到相应的bib文件,方法也是有三:在系统环境中指定BIBINPUTS变量,二是在代码中给出路径参数,格式如/bibliography{BIB_FILNAME_WITHOUT_SUFFIX, DIRECTORY}(这种方法中路径还不知道怎么正确表示,latex似乎不识别),三是保证bib文件跟tex文件位于同一个目录下面。

另外,
关于管理bib文件,可以使用JabRef,基于Java平台的,主要针对CS专业,突出功能是可以在粘贴区内用双击选中的方式给字段赋值。

关于文献格式:一个常见问题是JabRef通常默认的格式采用UTF编码,所以使用JabRef前要检查General下的encoding选项是ASCII。采用ASCII编码环境下要使用中文的话还要保证使用的codepage是正确的,即cp936,这是由编辑环境决定的,通常windows下没有问题,用SciTE打开这样的bib数据库文件可以看到头部有JabRef自动添加的说明“This file was created with JabRef 2.2.Encoding: ASCII”,“文件”->“编码”下识别为“Code  Page Property”。若识别为UTF-8,那还需要在代码中指定使用CJKutf8宏包。


关于文献类型:
(摘自TeXGuru的Latex2e用户手册

@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相同。
@inbook条目为一本书的一部分(章,节或某些页)。
    不可少域author或editor, title, chapter和/或pages, 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条目为不属于其它任何类型的作品。
    不可少域没有。
      可省略域author, title, howpublished, month, year, note.
@phdthesis条目为博士论文。
    不可少域author, title, school, year.
    可省略域type, address, month, 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.
在每项条目中还可以有可省略域key和crossref.


原创粉丝点击