[Tex/LaTex] Running BibTex from TextMate

bibtex

I'm trying to run bibtex from TextMate, but it doesn't seem to be working.

After I run pdflatex from Textmate, I click "Run BibTeX" to which I get the following

This is BibTeX, Version 0.99c (Web2C 7.5.7)

The style file: plain.bst

Found 0 errors, and 0 warnings in 0 runs

bibtex exited with status 2

After running latex several times, all that shows up in the PDF is "References" with nothing below it.

I'm using latex version pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) on mac osx 10.6

Update 1 when i try to run bibtex from the command line i get this

$ bibtex ME265_Paper
This is BibTeX, Version 0.99d (TeX Live 2010)
The top-level auxiliary file: ME265_Paper.aux
The style file: plain.bst
I couldn't open database file ME265_Paper.bib
---line 31 of file ME265_Paper.aux
 : \bibdata{ME265_Paper
 :                     }
I'm skipping whatever remains of this command
I found no database files---while reading file ME265_Paper.aux

Thanks for the help.

Best Answer

Ben's answer is almost but not quite correct. The problem that you are having is that bibtex is looking for a file that isn't there. There are two solutions: first, you can change the name of your .bib file to match the name of the .tex file. Second, you can put in the name of your .bib file (absolute or relative path) in the .tex file where you want the bibliography to appear.

\bibliography{bibname.tex} is what will help you with that. That should fix your problem.