Mael Hilléreau wrote:
I noticed in bug #3347 that JMarc proposed the idea of having child
documents opened without being registered in session management (use of
a 'buffer hidden' flag). Thus child documents wouldn't be closed, they
could only be hidden. Maybe this could be a nice solution WRT this
enhancement and numbering as well.
I have created a branch in SVN that will deal with this problem:
svn://svn.lyx.org/lyx/lyx-devel/branches/personal/younes/mvc
Thanks to the change in this branch it is now possible to open a
document without affecting a tab to it. So this is not "hiding" but "not
showing". I will implement that in my branch and if the other developers
agree I could merge it for 1.5.1 or 1.5.2. Otherwise you will have to
wait for 1.6.0.
Note also that the problem you mentioned above (child changed on disk)
is not relevant anymore in the case children are not closed...
This is not really a bug considering the explanation above; the Toc
backend just shows what the child document says. If the child document
is not opened, then this (chapter 1) does not exist anymore WRT the
master document. So it's all part of the same problem.
But this is a hurdle to consistency between GUI and output. I'm sure
that numbering wasn't introduced in this purpose.
Well, at least it's an improvement over 1.4 where the child numbering
was not taken into account.
Workaround: keep your child documents open :-)
Thanks! ;-) However, I heard about users using tons of child documents,
which fill up the tab bar. So this isn't always acceptable.
My work in the mvc branch will solve this hopefully.
Abdel.