LaTeX and BibTeX search directories

Since Dropbox doesn’t handle symlinks properly (not yet on MacOSX anyway), I had to find another way to access my personal BibTeX database and LaTeX style files, while keeping those files in Dropbox.  It seems the easiest way is to change the environment by setting:

export TEXINPUTS=".:~/Dropbox/latex:"
export BIBINPUTS=".:~/Dropbox/latex:"

to your shell configuration. This adds the directory ~/Dropbox/latex to the search path for LaTeX and BibTeX, so any file in that directory can be accessed as normal from within any TeX file.  (Note that colon on the end of each line above is necessary to ensure that the standard search paths are included.)

Leave a Comment