On 2011-06-04, Peter Flynn wrote: > I think I need to create an EndFoo style
Please don't do this. There is an alternative (see below). > so that I can get LyX to > display something that shows the end-boundary of the environment, > otherwise the user will have no idea if the cursor is still within the > Foo environment when inserting the list...I have been spoiled by so many > years of using XML and LaTeX where you can see the boundaries. > My problem was in not expecting a function like Increase List Depth to > be needed: I had assumed it was the default that a new environment would > go inside the current one. If I invoke a LyX style which is defined as a > LaTeX environment, I thought everything I typed or invoked from there on > would go inside the environment until I did something to exit the > environment. For this kind of environments, you use an Inset instead of a Style: it shows as a box in the LyX buffer, it is only leaved when you tell it, and it allows two subsequent instances without the "--- Environment Separator ---" hack. Unfortunately, beamer.layout (and some others) are older than the customizable Inset, so that it contains this "End..." hacks or uglier things. > What is the trick that permits (for example) a Frame environment to > contain other environments without the need to "increase the depth" of > the inserted environment? Using an Inset instead of a Style. Günter