Am Samstag, 8. Mai 2004 21:56 schrieb Helge Hafting: > I see a problem here. What paragraph types should be selectable > in such a document? Letters don't have sectioning, the other > classes are almost useless without that.
The allowed types depend on the master, of course. > Or do you propose that this subdocument-of-any-class document > should contain a reference to the master, so the type could > be looked up that way? That might be troublesome if > a subdocument is transferred somewhere without the master. A subdocument is incomplete without the master. It probably would contain a reference to the master. > I am not sure that a subdocument class is the way to solve this > particular problem. It might help, but it creates some other problems: > 1. Users wondering why in the world they cannot include another document This needs to be handled intelligently by lyx, e.g. they should have the option to convert the document to a subdocument, preferably putting the header in a new master document. > 2. Some documents are meant to be used both standalone and as inclusions. > Do you want to support that at all? I don't know. I have never seen that. I have documents that are included by more than one master, but I have no document that is used standalone and as subdocument, because usually there is at least some title stuff etc. > I see, you worry about the layout definition changing over time? Yes. > Fine, but how do you want to avoid restrictions? The classes differ greatly > in what paragraph types they support. Allowing only the common ones is > very restrictive, allowing all breaks as badly as today's inclusion of > a different typed document. Looking it up in the master file means > we need to have the master file around too. That have its own set > of problems, particularly if they aren't in the same directory > an/or the user moves the files around. Still, it might be better > than the current situation. Since I am not going to work on this, I think we have discussed enough now. Be assured that I take your arguments seriously and if I ever will do anything in this direction will pay attention to them. Georg