I use LaTeX on multiple computers. To avoid having different versions of my bibliography files floating around, I keep all of my .bib files in a Dropbox folder, instead of in local texmf folders.
One of the computers runs Ubuntu, and on that computer, I use TeXWorks. In the "Paths for TeX and related programs", I added the path to the folder that contains my BibTeX files: /home/.../Dropbox/Bibliographies/. However, BibTeX still can't find my .bib files.
Here is an example:
\documentclass{article}
\begin{document}
We refer to the work of Ulam~\cite{Ulam}.
\bibliographystyle{plain}
\bibliography{mybib}
\end{document}
And here is the error message:
This is BibTeX, Version 0.99c (TeX Live 2009/Debian)
The top-level auxiliary file: bibtexpath.aux
The style file: plain.bst
I couldn't open database file mybib.bib
---line 4 of file bibtexpath.aux
: \bibdata{mybib
: }
I'm skipping whatever remains of this command
I found no database files---while reading file bibtexpath.aux
Warning--I didn't find a database entry for "Ulam"
(There were 2 error messages)
Edit: This question was closed a while ago. However, I don't understand how to apply the answers to the supposed duplicate to my situation. In particular, while the accepted answer there talks about putting a .bib file in the $LOCALTEXMF hierarchy of a particular system, I would like to keep mine in a Dropbox folder. In that case, the correct path name will vary depending on which machine I'm using.
BIBINPUTS=$BIBINPUTS:.:/home/.../Dropbox/Bibliographies/– Guido Oct 17 '12 at 10:11texmf.cnf. – Speravir Mar 30 '14 at 03:54