I use Sublime Text to edit latex on multiple computers, which are synced using dropbox. I use a master .bib file for my bibliography, which also lives in a dropbox folder, and all my latex files are in dropbox as well. This means that when I compile a latex file, I have to give it a bibliography command that will work on all my computers. A minor difficulty is that Sublime Text does not have a path-to-local-home command (analogous to ‘~’ in unix), so you can’t just use \bibliography{~/Dropbox/MasterBibliography.bib}. No problem! – I just added a symbolic link to my master bibliography in my texmf-local file using this trick: http://notesfromflatland.blogspot.co.uk/2012/05/integrating-bibdesk-latexian-and.html. Latex knows to look for bib files in my texmf-local folder, so now all my references compile perfectly on all my machines. Lovely.
The problem: The wonderful citation completion LatexTools menu doesn’t seem to know to search in my texmf-local folder. It appears to be looking in the same directory as my latex file, and then says, “Cannot open bibliography file…” instead of showing me the dropdown menu. To summarize:
• When I specify the absolute path using \bibliography{/Users/me/Dropbox/MasterBibliography.bib}, the \cite{} dropdown menu works great. But this doesn’t sync on all my computers, because the absolute paths are different.
• When I use \bibliography{MasterBibliography.bib}, Latex compiles my references even though the bib file is not in the same directory as my tex file, because latex knows to look for bib files in texmf-local.
• However, in the latter case, LatexTools does not provide a dropdown menu; it appears to be searching only in the directory containing my latex file and not in texmf-local.
Does anyone know a way to tell LatexTools to look for bibliography files in texmf-local? Or, is there a simpler solution for what I’m trying to do?
Many thanks for your kind help!