Ernesto Posse wrote:

  Hi. I'm having a problem installing a new layout. I've created my own
layout file and put it under .lyx/layouts, including the associated .sty
file, but when I reconfigure the new layout doesn't appear (under
Layout|Document.)

  I found a file called "textclass.lst" both on my own directory and on
lyx/share/lyx, which contains entries for the layouts. When I modify any
of these and add an entry corresponding to my layout, it appears, but
when I reconfigure it disappears.

  What can I do so it doesn't disappear when I reconfigure?

  (I use LyX 1.3.3. Windows port, native, not Cygwin.)

  Thanks

I'm pretty sure the style file (.sty) has to go into a directory in the TeX hierarchy (for instance, ...\localtexmf\tex\latex\foo). Then do whatever your TeX installation requires to make sure the style file is added to the TeX directory files. In MiKTeX, you can do this with the Options utility, General tab, first button ("Refresh Now"). With other distributions, this may involve running an executable named texhash or mktexlsr. Leave the layout file in .lyx/layouts. Now reconfigure.

The LyX configuration script only lists layout files for which the corresponding style file is known, and it only knows style files that the TeX distribution knows about.

HTH,

-- Paul
******************************************************************************************
Paul A. Rubin Phone: (517) 432-3509
Department of Management Fax: (517) 432-1111
The Eli Broad Graduate School of Management E-mail: [EMAIL PROTECTED]
Michigan State University http://www.msu.edu/~rubin/
East Lansing, MI 48824-1122 (USA)
******************************************************************************************
Mathematicians are like Frenchmen: whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different. J. W. v. GOETHE




Reply via email to