Adrian Peter wrote:
Hi,
I am running LyX on my windows box. A conference I am preparing a paper for provided a .sty file to use for tex preparation. How can I make lyx see the style file? I tried to create a simple layout file that told lyx to look for the style file. However, when I do a recongfigure lyx cannot see the .sty file.

After downloading the style file, you need to install it in an appropriate directory (one that your LaTeX program will check when the time comes) and the refresh the file database that keep tabs on what you have installed. My suggestion for where to put it would be to locate your localtexmf directory, add a subdirectory underneath it named <localtexmf>\tex\latex\<conference name>, and stuff the style file in there (creating the tex and latex subdirectories if they don't already exist). Then update your file database.

If you're a MiKTeX user, run the MiKTeX Options program from the Start menu, click on the Roots tab, and you'll see where your localtexmf directory is located. If you don't have one, you can either create one (recommended) or put the style file in the same relative location under the MiKTeX root (not recommended because the style file will get vaporized if you reinstall MiKTeX). Then switch to the General tab and click the Refresh Now button.

Also when I start lyx and went to help and clicked on the latex configuration, it says "not a lyx file". Are all these things related?

No, this is a separate problem.

If so I would appreciate some advice on how to fix this. Thank you.

Try running Edit->Reconfigure from inside LyX, then close LyX and restart it, then see if Help->LaTeX Configuration opens properly.

Paul

Reply via email to