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?

Thanks so much!

MS



On Wed, Nov 19, 2008 at 4:52 PM, Richard Heck <[EMAIL PROTECTED]> wrote:

> Maarten Smoorenburg wrote:
>
>> I am trying to submit an article for publication by using the
>> copernicus.cls
>> class. This class is used by many journals that are published by the
>> European Geophysical Union (EGU) and I would like to publish in HESS. I
>> jsut
>> wrote the article in a simple article layout and now want to use the
>> copernicus.cls class for publishing
>>
>> Currently, there is no layout file available for the copernicus.cls and
>> rather than copy-pasting all my LyX generated LaTeX code paragraph by
>> paragraphy to a 'normal' tex editor (e.g., TeXnicCenter),
>>
>>
> If you want to go this way, just do File>Export>LaTeX. This will create
> yourfile.tex in the directory where the LyX file lives. Then you can open it
> and do as you please.
>
>  I would like to
>> build a LyX layout file. I've read some posts about building layouts, but
>> I'm already stuck at the first definition of the class: this is because
>> copernicus.cls is an article style class, which has to be called like
>> this:
>>
>> \documentclass[journal abbreviation]{copernicus}
>>
>> Now I have 2 questions:
>> - how do I set this document class in a layout file?
>>
>>
>>
> By default, the document class is the same as the layout name. So you just
> call it copernicus.layout. You can also do:
>   \DeclareLaTeXClass[copernicus]{Copernicus}
> and call it whatever you like.
>
>  - how much time would it cost me, all in all to build such a thing, all
>> the
>> way (without any layout programming experience?).
>>
>>
>>
> As the other responder said, you can probably get a working layout very
> simply. This is because article.cls and copernicus.cls will share a lot of
> their environments. Getting new things that are in copernicus and not in
> article to work can be done a bit at a time. Really the best thing is to
> look at the existing layouts and then just copy one and play with it, so you
> can see what the various commands do.
>
> rh
>
>

Reply via email to