Dave Hewitt wrote:
Many thanks to Paul Rubin for his recent help on document classes.
No sweat -- it was either this or do actual work. :-)
But,
as he probably suspected, my dilemna continues (me and the wolverine are
both a bit worse for wear, but we'll live)
Good in your case, undesirable w.r.t. the weasels.
and now I think it rises to a
new level...
There's many wonderful document classes out there, and new users are
probably interested in trying them out in LyX, but the layout file is
(as described) difficult to deal with. I spent an hour or so messing
with NRC's classes and a couple others (using Paul's suggestions and the
Customization Ch. 5), all to no avail. LyX fails to convert files with
just a single line of text into any of the three I tried (from article).
So, my question is: is there a repository somewhere of layout files that
people have created to work with the various document classes?
Someone (Christian?) started a page on the wiki for contributed layouts
(http://wiki.lyx.org/Layouts/Layouts). People who create or modify
layouts are invited to contribute them there. As you'll see upon
visiting, so far there have not been very many contributions, and in
particular none that strike me as matching your class.
When you say LyX fails to convert files, what error message or pathology
do you get? I assume that it's displaying your hacked layouts in
Document -> Settings... -> Document class.
Also, you might want to verify that MikTeX did in fact install the class
properly. An easy check is to open a DOS shell and run
kpsewhich nrc1.cls
kpsewhich nrc2.cls
(those seem to be the names of the class files). It should give you the
path to the class files. If not, the culprit is likely not the layout
file. Be sure that the layout files have matching names (nrc1.layout,
not nrc.layout).
/Paul