Now I've added your suggestion; ClassOptions Other hess,ms End But, still it doesnot work, I get the error message when trying to define in Document Settings: *"The layout file... is not usable. This is probably because a LaTeX class or style file required by it is not available.*"
It does recognize the class options though. In TeXniCenter, I can compile some document with the specified copernicus.cls settings, so I think I do not miss out on LaTeX files in my MiKTeX 2.7. I see two problems myself: - some default packages of LyX amsmath.sty cannot work with the copernicus.cls document class - some required environments (running author, conclusions, introduction etc.) are not standard in LyX I see some other layouts require ".inc" files. Do I need to write one of these too? And how to handle these two copernicus.cls specific problems; anybody knows of other journals / layouts with these features as examples? Cheers, Maarten On Wed, Nov 19, 2008 at 5:15 PM, Richard Heck <[EMAIL PROTECTED]> wrote: > Maarten Smoorenburg wrote: > >> Thank you Richard for the quick reply. But I must say that one thing is >> still not clear to me: >> >> I normal LaTeX, I have to state the document class as follows: >> >> \documentclass[journal abbreviation, ms]{copernicus}, >> >> where copernicus refers to the document class to be used (copernicus.cls) >> and the other two are options for respectively the journal title (in my case >> "hess") and the column style ("ms" means that the article is compiled in >> one-column style, which is common for submission of papers). >> >> Now I tried various things to put this as a layout file, for example: >> >> \DeclareLaTeXClass[copernicus]{article(hess)} >> or: >> \DeclareLaTeXClass[[hess,ms]{copernicus}]{article (HESS)} >> >> But this doesnot work: I cannot use it as a layout from LyX at all! Now, I >> wonder: How would you suggest to put the options and the document class in >> the \DeclareLaTeXClass line? Or do you have examples from other classes? >> >> Can't do it those ways. Try adding this: > ClassOptions > Other hess,ms > End > I think that will work. If not, just enter the options manually for now in > Document>Settings, and we can figure it out later. > > rh > >