解决论文编译后没有参考文献


#其他#


2014-09-08

最近用了一下elsevier的latex模板,在windows CTEX 使用latex编译时,出现Undefined citation warnings这样的警告,编译的dvi和pdf中文献引用有问题,参考文献References也没有内容,但是latex文件中确实正确地引入了bib文件。为了解决这个问题,在网上找了些资料,总结一下。

先说一下大致的编译过程

1、进入ubuntu(我的是linux mint 16),安装texlive:

$ sudo apt-get install texlive

2、如下编译:

$ latex elsarticle-template.tex 
$ bibtex elsarticle-template.aux
$ latex elsarticle-template.tex 
$ latex elsarticle-template.tex 

3、使用evince查看dvi文件:

$ evince elsarticle-template.dvi

4、将dvi文件转换为pdf并查看

$ dvipdf elsarticle-template.dvi
$ evince elsarticle-template.pdf

在使用latex命令编译过程中遇到了一些错误

1、! LaTeX Error: File `elsarticle.cls' not found.

解决方法:

$ sudo apt-get install texlive-publishers

2、LaTeX Error: File `lineno.sty' not found. 解决方法:

$ sudo apt-get install texlive-humanities

3、LaTeX Error: File `algorithm.sty' not found. 解决方法:

$ sudo apt-get install texlive-science

4、File bbm.sty not found 解决方法:

$ sudo apt install texlive-fonts-extra

5、'multirow.sty' not found ubuntu texlive 解决方法:

$ sudo apt-get install texlive-latex-extra

要怕麻烦的话,最好的方法是把latex相关的软件包全部install。

GUI编辑器

texmaker 看着很顺眼。官方网站:http://www.xm1math.net/texmaker/

$ sudo apt-get install texmaker

lyx

$ sudo apt-get install lyx

lyx官方网站:http://www.lyx.org/

参考资料

http://choorucode.com/tag/latex/

Undefined citation warnings

Undefined citations


( 本文完 )