On Tue, 2007-12-11 at 11:45 -0500, Richard Heck wrote: > [EMAIL PROTECTED] wrote: > > I have a custom sty that I need to use and read about adding to the > > Latex search path. In my .bashrc I now have > > > > export TEXINPUTS=".:~/latex/styles//:" > > > > and a sty file in that dir. > I think this sets where TeX looks for source files. > > Lyx can't find it though. I get "Latex > > error: can't find file StuS13.sty". Is there something else I need to > > do? > > > You LaTeX distribution should set up a local tree for you. In my case, it's > ~/texmf/. What path this is is set in the texmf.cnf file, viz: TEXMFHOME = > $HOME/texmf. You can change this if you want. > I have the tetex packacges installed on ubuntu, but no local tree that I'm aware of. No ~/texmf anyway...I tried to to set this up on a different PC (same OS etc) but now I can't even set the env var. Bash complains:
bash: ~/latex/:: No such file or directory bash: ~/texmf/:: No such file or directory I think my setup is missing something but I can't figure out what it is. Any ideas where to look? I could always move this sty file into the place where the system ones are kept (if I knew where that was!) but I'm sure that's not sustainable. Thanks, Jim > Note that your tree here should be structured like your main TeX tree. So I > put my custom style files into $TEXMFHOME/tex/latex/heck/; bst files undero > $TEXMFHOME/tex/bibtex/; and so forth. > > And finally, you need to run texhash whenever you add or remove anything. > > Richard > > >
