Andreas Karlsson wrote: > Hi, > > I have created a LyX .layout file for the LaTeX class file gSCS2e.cls > [snip] However,the LaTeX class file contains some special > environments, e.g. for lemmas, theorems, corollaries and proofs. To > use these I have to include ERTs with e.g. \begin{lemma}Text of > lemma\end{lemma} > > To make it more user friendly I would like to have these environments > available from the LyX enivronment drop-down list too, so it would not > be necessary to use ERTs. Could someone tell me how to do this, or > point me to a reference with information about how this shoud be done? Look at the amsmaths.inc file which you'll find in the main layouts directory. You can probably just use much of what's there. Some of it you may have to modify. Basic documentation is in section 5.1 of the Customization manual.
Richard -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto