On Sun, 1 Apr 2001, Martin Vermeer wrote:
> Hmmm. I was thinking of a simple implementation that allows, in the TOC pop-up,
> four operations (= arrow buttons):
> ^. Move this header up,
> v. move this header down,
> <. promote,
> >. demote.
> ^ and v would move the current section/subsection/... with all the attached stuff
> (i.e. everything between it and the next same-level header) to just before the
> previous or just before the next-next same-level header.
The trouble is that different classes can have different names for
sections and their hierarchies. So we really need some standard way of
defining the relative structure elements within a class and also between
classes when changing document classes.
We've discussed this lots of times now but not really found a final
solution. A LyX DTD was the last best suggestion that incorporated
standard levels/structure elements (like s1, s2 etc. for each section
depth) and all classes could be approximately mapped to (be they LaTeX or
SGML/XML).
I'm inclined to think that DocBook might be a suitable superset for
mapping all document classes to. It seems to cover a huge range of
possible document structure elements (only a small proportion of which are
used in any given LaTeX document class).
Then the layout files would need a little extra info per paragraph style
to say what logical element that paragraph style maps to. Changing
between document classes is then a matter of comparing logical elements
rather than environment names.
Allan. (ARRae)