On Mon, 06 Dec 2004 11:41:31 +0100, Hussein Shafie <hussein at pixware.fr> wrote:
> I agree on the usefulness of first and second case. And the DocBook DTD, > for example, clearly forbids third case. But in *our* experience, some > naive users may expect third case to work too. This the only reason why > I gave the <section id="example"> example. > > --- > Please find attached to this email 2 macros: Thanks very much, it works and it's terrific! > * splitSection bound to F5, implements first case. > Usage: explicitly select the child of the section which is the split > point and press F5. > > * wrapInSection bound to F6, implements second case. > Usage: explicitly select the child of the section which is the first > element to be wrapped in a subsection and press F6. > > Remarks: > ~~~~~~~ > > * Requires V2.8 Patch 1 because the macros have been marked as undoable. > > * Use with DocBook or Simplified DocBook. Requires the use of <section>. > Will not work with <sect1>, <sect2>, etc. Actually the splitSection works with sect[1-5] if the match constraint is not focused only on section parent. For wrapInSection it's not so easy because it would involve to increment level of the included sect[1-5] (maybe by using the incrSectionLevel command?)... Thanks again! BG

