On 06/04/2011 09:42 AM, Peter Flynn wrote:
> On 03/06/11 23:14, Richard Heck wrote:
>> On 06/03/2011 05:48 PM, Peter Flynn wrote:
> [...]
>>> Hmmm. That's what I did: insert a list. But there's nothing in the
>>> Edit menu related to lists at that point. This is using a Beamer
>>> layout file: does that disable some of this stuff?
>>>
>> No, it shouldn't. Here, it is at the very bottom of that menu. Try
>> Alt-Shift-Right Arrow....
>
> On 03/06/11 23:20, Julien Rioux wrote:
> [...]
>> I don't think Beamer disallows it. Try to put two environments (that
>> are different from "Standard" environment) one after the other. Place
>> your cursor in the second. You will have the action "Increase List
>> Depth" available and using it will wrap the second environment by the
>> first.
>
> I found it eventually, thank you both very much.
>
> I think I need to create an EndFoo style 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.
>
Can't the user look at the dropbox and see what environment they are in?

> 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.
>
> (This problem isn't unique to LyX, but most systems do it the other
> way round, allowing arbitrarily anything inside a style and providing
> no way to get outside the environment; see my comment in [1].)
>
I think this is mostly a matter of getting used to LyX's way of doing
things. Both make sense. For me, I'd rather not have to exit the theorem
environment before entering a proof, or a corollary, or whatever.

It would be possible to make this more flexible, though. There probably
are cases, mostly involving lists, where you'd expect the list to be
within the existing environment. E.g., lists within statements of
theorems, or proofs, or what have you. One could have some kind of
setting for different layouts that signalled whether they expected lists
within them. Or maybe one could, by default, increase depth for lists
within environments. Lots of possibilities. But any change would need
discussion.

> 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?
>
You can look at the beamer layout to see this, but it is a complete
mess. You really don't want to do this.

rh

Reply via email to