I haven't found a way to do it using Covington numbering, which is what I usually use. You can either have all examples numbered as sub-examples and not have a group heading for them, or just use crude manual numbering for your (a) and (b) sub-examples and use automatic labeling and cross-referencing for the main example.
Maria 2010/2/23 Petr Šimon <petr.si...@gmail.com>: > 2010/2/23 Jürgen Spitzmüller <sp...@lyx.org>: >> Petr Šimon wrote: >>> I have in mind something like this: >>> \begin{example} \label{1} >>> \begin{enumerate} >>> \item a \label{1a} >>> \item b label{1b} >>> >>> So that I can refer to all the subexamples by 1 and to each >>> individually, 1a and 1b. >>> I would hope that when I add a subexample a group label would be inserted. >>> Is this possible from the layout definitions? I tried to look at it >>> briefly, but it wasn't clear to me how that would be possible. >> >> No. You will need to use ERT. >> >> Jürgen >> > > Ok, thanks. > Perhaps it could be added later? Right now the subexamples make little > sense when they can't be referred to as a group. > Petr >