TeX Live and MacTeXUser bibtex styles - where do they go?

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
pandammonium
Posts: 55
Joined: Thu Oct 30, 2008 4:12 pm

User bibtex styles - where do they go?

Post by pandammonium »

Hi, I originally posted this problem in the Kile forum, because it seemed to be a problem with the way Kile worked originally, but now I think it might be related to the Latex distribution itself.

I've got TexLive on Ubuntu and editing with Kile. The problem is this:
pandammonium wrote:I have a texmf directory set up in my home area that I put .sty files that my package managers can't download for whatever reason in. The file avm.sty is an example, and lives in ~/texmf/tex/latex/avm; this works fine.

However, if I put dcu.bst in what looks to me like the correct place (~/texmf/tex/bibtex/bst/harvard/dcu.bst), latex/bibtex doesn't twig it's there. Is this because all the other Harvard files are elsewhere (/usr/share/texmf-texlive/bibtex/bst/harvard/*.bst) (because Ubuntu installed them)?

Have I made an error in the file structure? Do I have to copy dcu.bst to the same place as all the other Harvard files? Or do I have to do something else?

If it helps, I'm using the natbib package, which works fine with all the .bst files in /usr/share/texmf-texlive/bibtex/bst/harvard/.

Edit: I have run texhash in ~/texmf/tex/ to see if it made any difference, which it doesn't. The files are there in the ls-R file that texhash output, though.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: User bibtex styles - where do they go?

Post by kaiserkarl13 »

See if defining the following environment variable solves your problem:

export BSTINPUTS=".:$HOME/texmf/tex/bibtex/bst/harvard:"

(The colon at the end tells it to search the "default" places after it's done there.)

(I've assumed you're using bash, the default shell for Ubuntu, here; if that doesn't work, try the same thing with setenv instead of export and no equals sign.)
Post Reply