> Sectioning and toc levels are defined there only in relation to the preceding
> one. Same level, one level down, one or several levels up. The advantage here
> is: You can cut and paste, move around add or remove levels up to a maximum
of
> 12. The interior logic of those parts will always remain intact and you will
> never have with re-leveling everything.
> 
> Is this possible with your scheme?

Yes, it is.

The depth counter approach is equivalent to the tree based approach in terms of
expressionality.  Both approaches are equally powerful because they both
describe a tree.  It's simply two different ways of expressing the same
information.

The main advantage of the depth counter approach is that we don't need special
container insets, and it's also simpler to move things around from one place to
another, because you do not need to consider the context of the destination
before you move things.  Furthermore, we have constant time random access for
more operations than with the tree based approach.
Finally, it's what we do in the current LyX kernel, and that has proven itself
functional.  The parts in the current LyX kernel that are disfunctional are
being fixed with the new kernel, because footnotes and other constructs *will*
be embedded in a physical tree structure.

Greets,

Asger

Reply via email to