Re: Implementing a new environment in a LyX .layout

2011-06-07 Thread Richard Heck
On 06/07/2011 02:51 PM, Peter Flynn wrote: That's very useful, thanks. Can Insets be made to appear in the normal drop-down of structural styles? Or are they still functionally character-level markup, even though one may be declared as an environment? Footnotes are insets. Notes, branches,

Re: Implementing a new environment in a LyX .layout

2011-06-07 Thread Peter Flynn
On 07/06/11 13:59, Richard Heck wrote: On 06/07/2011 02:48 AM, Guenter Milde wrote: 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. Section 5

Re: Implementing a new environment in a LyX .layout

2011-06-07 Thread Richard Heck
On 06/07/2011 02:48 AM, Guenter Milde wrote: > 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. >>> Section 5 of the doc doesn'

Re: Implementing a new environment in a LyX .layout

2011-06-06 Thread Guenter Milde
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. >> Section 5 of the doc doesn't seem to have anything on what an Inset is >> a

Re: Implementing a new environment in a LyX .layout

2011-06-06 Thread Richard Heck
On 06/06/2011 06:34 AM, Peter Flynn wrote: > On 04/06/11 23:12, Guenter Milde wrote: > [...] >> For this kind of environments, you use an Inset instead of a Style: > > I thought an Inset was for character-level markup. I may have > misunderstood something here. > >> it shows as a box in the LyX buf

Re: Implementing a new environment in a LyX .layout

2011-06-06 Thread Peter Flynn
On 04/06/11 23:12, Guenter Milde wrote: [...] For this kind of environments, you use an Inset instead of a Style: I thought an Inset was for character-level markup. I may have misunderstood something here. it shows as a box in the LyX buffer, it is only leaved when you tell it, and it allow

Re: Implementing a new environment in a LyX .layout

2011-06-04 Thread Guenter Milde
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

Re: Implementing a new environment in a LyX .layout

2011-06-04 Thread Richard Heck
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

Re: Implementing a new environment in a LyX .layout

2011-06-04 Thread Peter Flynn
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

Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Julien Rioux
On 03/06/2011 5:48 PM, Peter Flynn wrote: On 03/06/11 13:25, Richard Heck wrote: On 06/02/2011 07:35 PM, Peter Flynn wrote: On 01/06/11 13:57, Richard Heck wrote: How do I tell LyX that lists (for example; and much other stuff) is permitted inside a Foo environment? Is there a setting or switc

Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/03/2011 05:48 PM, Peter Flynn wrote: > On 03/06/11 13:25, Richard Heck wrote: >> On 06/02/2011 07:35 PM, Peter Flynn wrote: >>> On 01/06/11 13:57, Richard Heck wrote: > How do I tell LyX that lists (for example; and much other stuff) is > permitted inside a Foo environment? Is there a

Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Peter Flynn
On 03/06/11 13:25, Richard Heck wrote: On 06/02/2011 07:35 PM, Peter Flynn wrote: On 01/06/11 13:57, Richard Heck wrote: How do I tell LyX that lists (for example; and much other stuff) is permitted inside a Foo environment? Is there a setting or switch that tells LyX to allow nested environmen

Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/02/2011 07:35 PM, Peter Flynn wrote: > On 01/06/11 13:57, Richard Heck wrote: >>> How do I tell LyX that lists (for example; and much other stuff) is >>> permitted inside a Foo environment? Is there a setting or switch that >>> tells LyX to allow nested environments globally, or does it have

Re: Implementing a new environment in a LyX .layout

2011-06-02 Thread Peter Flynn
On 01/06/11 13:57, Richard Heck wrote: How do I tell LyX that lists (for example; and much other stuff) is permitted inside a Foo environment? Is there a setting or switch that tells LyX to allow nested environments globally, or does it have to be done on an environment by environment basis? Th

Re: Implementing a new environment in a LyX .layout

2011-06-02 Thread Richard Heck
On 06/01/2011 06:41 PM, Peter Flynn wrote: > On 01/06/11 13:57, Richard Heck wrote: > >>> I can see that an Inset affords the option to add tokens or values, >>> but I can't see how to make one compulsory, so that it pops up the >>> moment you add a Foo from the menu. >>> >> There's no system for a

Re: Implementing a new environment in a LyX .layout

2011-06-01 Thread Peter Flynn
On 01/06/11 13:57, Richard Heck wrote: [...] How do I tell LyX that lists (for example; and much other stuff) is permitted inside a Foo environment? Is there a setting or switch that tells LyX to allow nested environments globally, or does it have to be done on an environment by environment basis

Re: Implementing a new environment in a LyX .layout

2011-06-01 Thread Richard Heck
On 05/31/2011 06:12 PM, Peter Flynn wrote: > I am having some trouble understanding how to implement a new > environment in an existing .layout file. The documentation covers the > principle, but not the detail, especially about how to enable other > environments (like lists) *inside* the one I am

Re: Implementing a new environment in a LyX .layout

2011-05-31 Thread BH
On Tue, May 31, 2011 at 6:12 PM, Peter Flynn wrote: > Final plea: I have been unable to find a formal list of all the keywords for > a .layout file, with their syntax and application. Does such a list exist > yet? Try section 5 of the Customization.lyx help file (in the Help menu). BH

Implementing a new environment in a LyX .layout

2011-05-31 Thread Peter Flynn
I am having some trouble understanding how to implement a new environment in an existing .layout file. The documentation covers the principle, but not the detail, especially about how to enable other environments (like lists) *inside* the one I am implementing, and how to get LyX to prompt for