LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Storing BibTex bst files in home directory (https://www.linuxquestions.org/questions/linux-software-2/storing-bibtex-bst-files-in-home-directory-379045/)

drben 11-01-2005 02:17 PM

Storing BibTex bst files in home directory
 
Hi there folks

I've prepared a BibTex style file (NewEngland.bst) which I'd like to be able to reference from all subdirectories of my home directory. I should mention that the style works fine when referred to from within the same directory as the .tex and .bib files are located.

Following a lead, I made a ~/texmf/ directory and copied it and ran texhash

Quote:

ben@nutmeg:~$ cat texmf/ls-R
% ls-R -- filename database for kpathsea; do not change this line.
./:
.:
ls-R
NewEngland.bst
But apparently bibtex doesnt find it:

Quote:

ben@nutmeg:~/medicine/research/CO2$ bibtex proposal
This is BibTeX, Version 0.99c (Web2C 7.4.5)
The top-level auxiliary file: proposal.aux
I couldn't open style file NewEngland.bst
---line 23 of file proposal.aux
: \bibstyle{NewEngland
: }
I'm skipping whatever remains of this command
I found no style file---while reading file proposal.aux
(There were 2 error messages)
Other things that I've tried and failed:
> copying files to /usr/local/share/texmf/tex/latex/ & /usr/local/share/texmf/tex/bibtex/ and running texhash

> Enteringthe following to /bashrc
export TEXINPUTS= ~/texmf/:

Anyone out there got a bright idea?

Ben

drben 11-01-2005 02:31 PM

Answered my own question!

Found this command:
Quote:

ben@nutmeg:/usr/local/share/texmf/tex$ kpsewhich --show-path bst
.:/home/ben/texmf/bibtex/bst//:!!/usr/local/share/texmf/bibtex/bst//:!!/usr/local/lib/texmf/bibtex/bst//:!!/var/lib/texmf/bibtex/bst//:!!/usr/share/texmf/bibtex/bst//:/home/ben/texmf/bibtex///:!!/usr/local/share/texmf/bibtex///:!!/usr/local/lib/texmf/bibtex///:!!/var/lib/texmf/bibtex///:!!/usr/share/texmf/bibtex///
So I ran mkdir ~/texmf/bibtex
copied the bst file to there, reran texhash and it works.

:razz:


All times are GMT -5. The time now is 03:18 AM.