On Mar 10, 2004, at 5:51 PM, Angus Leeming wrote:
On Wednesday 10 March 2004 10:39 pm, M. C. D. wrote:On Mar 10, 2004, at 2:58 PM, Angus Leeming wrote:LyX knows nothing about .cls files really. The classes found in Layout | Document | Class are defined by the .layout files to be found in ${PREFIX}/share/lyx/layouts. Usually, you can get a long way with a sffms.layout file that contains little more than an instruction to input either article.layout or book.layout.
Thanks, that helped. The instructions in the Customization help file didn't mention anything about needing the .layout file to install a new class (see section 5.1 Installing a new LaTeX package). I had my own fake .layout ready, but LyX/Mac doesn't install layouts into ${PREFIX}/share/lyx/ so instead I had to open the LyX package and put it in there.
Hi, Mary.
(Let's take this back to the mailing list.
Sorry, I didn't realize the list was non-munging.
The documentation is good, but it's getting old. I'd encourage you --- anybody and everybody, in fact --- to post here any changes you think would improve it. There are places where things are now so out of date they're just plain wrong. The layout sections are a case in point. Would you consider adding a paragraph or two to make things clearer in light of your own experiences.)
I wouldn't mind, but I don't know how LyX is supposed to behave. LyX/Mac is a little unusual, and I'm also using the Mac distribution of teTeX rather than the standard Unix one. It turned out that I didn't need to install my package in TEXMFLOCAL at all - its regular location in HOMETEXMF works fine - but having no other system to test on I'm not sure whether that's normal behavior.
In general you probably shouldn't change things in the globally
accessible directories. At least, not until you're happy with the new
layout. LyX differentiates between system configuration files, to be
found in ${PREFIX}/share/lyx/
LyX/Mac files appear to be in /Applications/LyX.app/Contents/Resources/LyX/.
and user files, usually found in
${HOME}/.lyx. I'd recommend that you put your new layout file in the
${HOME}/.lyx/layouts directory.
That works too, but can it resolve inputs from there? How would I know if it failed?
Thanks, mary
