Martin Vermeer wrote:
On Fri, 01 Sep 2006 10:43:51 +0200 Helge Hafting <[EMAIL PROTECTED]> wrote:

Martin Vermeer wrote:
On Wed, 30 Aug 2006 14:31:05 +0200 Helge Hafting
<[EMAIL PROTECTED]>
wrote:


...

I agree it needs fixing, but how? This is sensible behaviour when
putting an
nset around several item/enum paras. But not in this case.

How to make the distinction and produce sensible behaviour in both
(all) cases?
The problem is the creation of "enumerate inside enumerate",
and similar for other things nesting effects, such as bullets
and all of the numbered stuff (sectioning, captions, . . . )
This is what must be avoided, and there are two simple ways:

When something (branch, box, etc) is inserted so that a list
paragraph is "split" (i.e. we get a list environment both
on the outside and the inside) then one of those
list environments must be reset to standard. This will avoid the
surprise nesting in all cases.

Then to consider what environment (outer or inner) to reset.

Turning the inside of the box to "standard" always:
Perfect for my particular case, but will wreck lists in
your case of marking several items.

...

My proposal is to do this, but reset *only the first paragraph* inside the inset to standard. I think this covers (almost) all bases and should be a simple point fix.
Looks like a bad idea, unless I misunderstand something.
This will break a trivial case of putting an entire enumeration
into a box, for example.

Before box:
1. one
2. two
3. three
Mark everything, insert a box, get:
1. [box starts here
   one
    a) two
    b) three
   box ends here]

Here we have the old problem again - I got "enumerate
within enumerate" but I never requested anything of the sort.
All I asked for was a box, I wanted:

[Box starts here
1. one
2. two
3. three
box ends here]

I think it is necessary to differentiate between two cases:
1. User marks less than a whole paragraph and inserts box/branch.
   Clearly, the user wants a box/branch inside the existing paragraph,
   so keep the outer paragraph type and reset the inner to "standard".
   In this case, we keep enumeration on the outside.

2. The user marks a whole paragraph, or several.
   In this case, the user clearly want to stuff the list (or whatever)
   into the box/branch.  So let him have that - put everything, including
   paragraph types into the new inset, and reset the outer
   paragraph (containing only a box/branch now) to standard.
   Now enumeration etc. happens inside the box.  Still no
   "enumeration within enumeration" problem.

Helge Hafting

Reply via email to