Niko Schwarz wrote:
Hello!
I'd like to define a few more math environments and I have no idea how. I
don't want too many. I use all kinds of extensions to AMS, and it has really
useful environments, but I want one more, and I want to be able to select it
in lyx.

Basically, it should be the same like the "lemma" environment. Only the name
should be different. I want a data reduction environment. How can I create
one?

Look at the file amsdefs.inc. There the main AMS layouts are all defined, and you ought to be able to copy one for lemma and make the relevant changes. If you know you are always going to want it, then you can copy amsdefs.inc to your local LyX directory (~/.lyx/layouts/, by default on Linux, something else elsewhere) and modify that file. If you only want it sometimes, then the best thing to do (in 1.6, only) is create a module for these extensions. Here, you could start with theorems-ams-extended.module, copy it to your local directory, rename it, erase what's there and then add your own stuff.

See Chapter 5 of the Customization manual for documentation of all this.

rh

Reply via email to