I should have been more complete. Below I've tried to address both Paul and Richard's most recent comments/queries.

Paul: "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 ... (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)."

DONE. I can see that they're installed in the MiKTeX Package Manager and find the pieces (tex, docs) in the MiKTeX latex directories (and the DOS search finds them). That's how I figured out what the .cls files were named (and .sty in this case). I also read the Readme files for the packages.

Richard: "Post the layout file or files. What kinds of error messages are you getting?" Paul: "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."

I copied "article.layout" from the LyX\Resources\layouts directory and renamed it "nrc1.layout", then I pasted it into my user layout directory. Following along with Customization -> Ch. 5, I altered the second line in the file this way:

#  \DeclareLaTeXClass[nrc1,nrc1.sty]{article (nrc1)}

(the nrc package comes with nrc1.cls, nrc1.sty, nrc2.cls, nrc2.sty, plus a bunch of other files including a PDF "user's guide", which probably means something to people that know LaTeX)

I also tried simply:

#  \DeclareLaTeXClass{article (nrc1)}

I also tried adding various combinations of package names into the brackets of example 1 (as I sort of deduced the User's Guide was telling me to do), but unsurprisingly they didn't work either.

I added some Preamble code to the file on one attempt as per the UG, but that didn't help (and I really had no clue what I was doing anyway).

In no attempt did I alter anything else down in the file.

Either way, YES, the document class shows up in the LyX drop-down, but when I choose it, LyX generates an error window with a red 'X' on it and a warning that says "The document could not be converted into the document class nrc1" -- I click OK and it reverts to "article" in the drop-down. This is what happened with two other classes I tried as well.

Dave

Reply via email to