Juergen Spitzmueller wrote:
Helge Hafting wrote:
Looks like a bad idea, unless I misunderstand something.

Please test my patch, then you'll see what it does without guessing.

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.

Why are you sure this is what the user "clearly" wants? The user cannot select the first enumeration item, so I'd "clearly" expect it to stay outside the box, personally.
Good point.  Actually, the user can select the first item _if_ there
is a paragraph before that.  Just put the cursor at the end of
that paragraph - and get a box embedded at the end of
said paragraph.

Now, if we had a way of starting the selection
before the numeral/bullet/section-number but after
the previous paragraph.  I.e. an extra cursor position.
Then the user gets a better way of deciding whether
an enumeration goes inside the box or if we
just have a boxed item.

I.e.:
Select the number too, and the get a box/branch with
the enumeration inside and no enumeration on the outside.

Don't select the number (only option today, unless you
also select the end of the previous paragraph),
and get a box/branch inside the enumeration.

Perhaps this is the real problem, we're lacking a
cursor position?

I think we shouldn't try to be too clever here and just restore to what we had in 1.3 (which is what my patch does).
Your patch is OK for boxes, as all the weird box cases (try
boxing two items that are neither first nor last) are
impossible to get sane in latex anyway. So for boxes, the
user may ask for something stupid - and gets something silly. OK.

Branches are different though.  It makes sense to
make a few items conditional, but this does not work.

Helge Hafting



Reply via email to