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?

This is normal LyX behavior. If you want the list inside, then you need
to do Edit>Increase List Depth on the list items. You can do this when
you insert the list, and the rest will be correct. Think of this as a
nesting system.

Aha. Excellent, thank you very much. I'll try this out.

[...] but how do I tell LyX that the environment has two arguments?

RequiredArgs 2

I failed to spot that, thanks. Probably because I was more anxious to ensure that prompts for them popped up when the environment was inserted.

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 automatic popup, etc. You add the arguments via
the poorly named Insert>Short Title, just as for optional arguments. The
UI here definitely could be better.

Ah, even though that prompts only with [opt]? OK. I can probably add a few words to the label so that the user can see that arguments are needed.

It would certainly be nice if RequiredArgs automatically added n inset-type boxes after the style label; even nicer if there was a way to attach a prompt label to each of the arguments :-)

[...] formal list of all the keywords for a .layout file

As Bennett mentioned, all of these are documented in Chapter 5 of the
Customization manual.

I found them, many thanks. I'm not used to LyX terminology yet, so I wasn't reading the ToC properly. And thank you Bennett for pointing this out.

///Peter

Reply via email to