Jürgen Spitzmüller wrote:
John Levon wrote:
You remember that far back too :)
I do. And I'm pinning all my hope on Richard and Martin, so that this crucial
feature will eventually become reality. I really hope this will make it into
1.6.0.
Document-internal layout is fairly easy to do now. Here's the recipe:
(i) Add the internal layout to BufferParams, mimicking what's there for
preamble; it'll need to be read and written
(\begin_layout...\end_layout?), for example, and don't forget the
"Format" line at the beginning; (ii) borrow the preamble bit from the
Document>Settings UI to get a simple UI for document internal
layout---you enter it as text; (iii) re-factor TextClass::read() so that
its successors can read from a file or a stream---so in particular it
can read the string from BufferParams; (iv) slightly modify
BufferParams::makeTextClass() so that it adds the document-internal
layout at the end (if such there is). There's a danger here, namely,
that the user enters layout that throws errors, but I think we handle
this properly. If not, that can be fixed.
Ultimately, we'd prefer to have a better UI for editing the
document-internal layout. But that's a different issue, and having SOME
way of making document-internal layout is a start.
Richard