I'm on Ubuntu 12.04 (not sure if it makes a difference) and I'm trying to change $TEXMFHOME to a custom directory. Currently it is $HOME/texmf, which I believe is the default, but even when I put .sty files in there the compilation of the .tex file cannot find it. And more so, when I change the directory of $TEXMFHOME to something else and move the .sty file there, it still can' find it. However, if I put the .sty file in the same directory as the .tex file it works perfectly (not what I want though). I am changing $TEXMFHOME in /etc/texmf/texmf.d/05TeXMF.cnf and using sudo update-texmf to generate the texmf.cnf file. Is this the correct way? What am I doing wrong?
If it's helpful, I am using emacs with auctex as my editor.
I have found other threads on here and other sites that are very similar, but none of the solutions for those worked for me.
texmfhome mimic the directory structure of your base install. For LaTeX stuff, you want to domkdir -p ~/texmf/tex/latex/and put your personal.styfiles there. If, say, you want to put abiblatex.cfgfile in your personal tree, thenmkdir -p ~/texmf/tex/latex/biblatex/and put the file there. Another good one:mkdir -p ~/texmf/bibtex/biband put your.bibfiel there. – jon Sep 12 '12 at 13:28