Sorry everyone, please ignore this. My problems are to do with understanding the custom style (it does it's own thing about titles, and I shouldn't try to put one in the doc.)
Jim On Wed, 2007-12-19 at 14:56 +0000, [EMAIL PROTECTED] wrote: > With help from #latex I have got my local latex environment set up, so > that I can run pdflatex on a simple tex file which uses the custom > style. When I try to use the style in a lyx doc though, by adding this > to the preamble: > > \usepackage{StuS13} > > then C-X P gives the error > ---------------------- > \maketitle > > The control sequence at the end of the top line > of your error message was never \def'ed. If you have > misspelled it (e.g., `\hobx'), type `I' and the correct > spelling (e.g., `I\hbox'). Otherwise just continue, > and I'll forget about whatever was undefined. > > Any ideas? > > Jim > > On Wed, 2007-12-19 at 12:39 +0000, [EMAIL PROTECTED] wrote: > > 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 > > > > > > > > > > > >