加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

关于LaTeX中“BibTex”命令

(2009-07-04 22:42:11)
标签:

latex

bibtex

命令

.bib文件

自动生成

参考文献

一劳永逸

排版

教育

分类: 论文写作

T晴……

 

    网上为LaTeX中“BibTex”命令的初学者提供的关于结合“.bib”数据库文件自动生成参考文献的例子总是不够详尽、没有范例,经过半天的摸索,总算弄出个最简单的例子,所以赶紧发上来,和其他BibTex命令初学者共勉。其实,关于怎么在期刊名后面加“[J]”,以及在图书名后面加“[M]”这件事儿,还没有解决。期待有朋友能不吝赐教啊!

 

1、请以“tex”为后缀保存以下这段代码(比如起名"example.tex")

\documentclass[a4paper,12pt]{article}
\usepackage{mathrsfs}
\usepackage{amsfonts}
\usepackage{CJK}

 

\begin{document}

\begin {CJK*}{GBK}{song}


荷兰人Tanenbaum\cite{tanenbaum:02}

刘备\cite{alWahab:95}

%凤雏\cite{zhao-f:04}

吴宝丰\cite{Wbf:2005}

默蒂和邦迪\cite{bm:1976}


\bibliographystyle{unsrt}
\bibliography{My01}


\end{CJK*}
\end{document}

 

2、以下内容请以“My01.bib”存储在"example.tex"所在目录下:


@book{tanenbaum:02,
   author    = {A. S. Tanenbaum and M. van Steen},
   title     = {Distributed Systems: Principles and Paradigms[M]},
   publisher = {Prentice-Hall},
   year      = 2002
}


@article{alWahab:95,
   author    = {R. M. AlWahab and M. A. ElKedrah},
   title     = {Using Fibers to Reduce Tension Cracks and Shrink/Swell in a Compacted Clay[J]},
   journal = {ASCE Geotechnical Special Publication},
   volume  = {46},
   pages    = {791-805},
   year      = 1995
}


@article{Wbf:2005,
   author    = {WU B F, XIAO E L, HONG Y},
   title     = {The spectral radius of trees on\,$k$\,pendant vertices[J]},
   journal = {Linear Algebra and Its Applications},
   volume  = {395},
   pages    = {343-349},
   year      = 2005
}


@book{bm:1976,
   author    = {BONDY J A, MURTY U S R},
   title     = {Graph Theory with Applications[M]},
   publisher = {New York: Macmilan Ltd Press},
   year      = 1976
}

3、在WinEdt这个软件中,按以下4个步骤进行编译:

LaTeX;

BibTex;

LaTeX;

LaTeX.

 

再来个“dvi2pdf”,即可看到结果^_^

 

注:关于“.bib”数据库文件的生成,是个一劳永逸的事情,尤其对那些立志于科研的人来讲。细节请参考以下网址:http://nwalsh.com/tex/texhelp/bibtx-7.html

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有