I’ve been using Philipp Lehman’s biblatex package to manage citations in (xe)latex documents. When compiling in TextMate using cmd-R (with latexmk.pl enabled), the bibtex files are not processed properly. BibTeX cannot find the citations and exits (in the html window) with

Found 0 errors, and 0 warnings in 0 runs

bibtex exited with status 2

Biblatex works in part by generating an additional bibfile called file-blx.bib in the same directory as the file.tex being processed. This is in addition to whatever main.bib file is being used to store actual citations and located in the BIBINPUTS directory. The problem is that that TextMate can’t find this file during its compilation sequence.

tex
1
2
3
4
5
6
7
8
9
This is BibTeX, Version 0.99c (TeX Live 2009)
The top-level auxiliary file: organizations.aux
The style file: biblatex.bst
I couldn't open database file organizations-blx.bib
---line 4 of file organizations.aux
 : \bibdata{organizations-blx
 :                           ,socbib}
I'm skipping whatever remains of this command
I found no database files---while reading file organizations.aux

The solution is to explicitly append the current directory to BIBINPUTS in Preferences >; Advanced >; Shell Variables, so that instead of , say,

/Users/kjhealy/Library/texmf/bibtex/bib

you have,

/Users/kjhealy/Library/texmf/bibtex/bib:.

Note the period at the end there. That way Textmate will search the current directory for bibtex files in addition to looking wherever your .bib files are. This has been your weekend bit of Textmate nerdery.