[Tex/LaTex] Where to save custom .bst files


Possible Duplicate:
Create a local texmf tree in MiKTeX

I'm trying to create my first bibliography with BibTeX. I want to use the Geological Society of America's .bst file for my style.

I'm not sure where to save the file so that LaTeX will find it (I'm using TeXworks as my editor).

I'm also not sure what needs to be added to the preamble.

I'm going to save the file as gsa.bst, so I'm aware that I need to add \bibliographystyle{gsa} in the bibliography section.

Forgot to add that I already tried \Program Files\MiKTeX2.9\bibtex\bst\base\gsa.bst

Best Answer

On my system (TeXlive on Debian), my personal .bst files are in ~/texmf/bibtex/bst/.

After adding files under ~/texmf/, you need to update the cache by running texhash ~/texmf from the command line. If successful, everything in that folder should be in the 'path' for bibtex.

You can check that your file is properly registered with kpsewhich:

kpsewhich your-bibtex-file.bst

This should produce the full path name to your bst. If so, then you're all set.

Related Question