Rich Shepard wrote:
> On Thu, 20 Jul 2006, Bo Peng wrote:
>> You can not control the order of the environment. The ui files are
>> for menu and toolbars only. I was proposing some sort of order, but
>> gave up after a few email exchanges... You may search the archive for
>> this.
> Unless the sequence was user-configurable, you'd get complaints no
> matter what the presented sequence is. Perhaps a compromise might be
> to re-order the environments relative to the class, but each of us
> users will still be applying different environments more frequently
> than others.
I believe the order is controlled by the layout file, which is in the
./layouts/ subdirectory of wherever the LyX system files are
(/usr/share/lyx/, in my case). There is such a file for each document
class. You can copy this to your local LyX directory
($HOME/.lyx/layouts/, in my case) and modify it as you wish.

I believe it's also possible simply to put at the beginning of the file
something like this:

Style Standard
End

Style Part
End

Style Chapter
End

Etc
Etc

Note that all of these are now empty. They then get redefined later in
the file. But the order seems to be set by first appearance.

I keep saying "I think" and such because it works for me. I don't know
it'll work for you.

Richard

Reply via email to