On Tue, Mar 11, 2014 at 8:38 AM, Jürgen Spitzmüller <sp...@lyx.org> wrote: > 2014-03-11 7:58 GMT+01:00 Jürgen Spitzmüller: > >> I prefer to fix the author problem. > > > I propose something along this line. Fixes the problem for me. >
I'm worried whether there are other things that might be broken. One thing for sure is that using the BufferParams of the parent is conceptually wrong. To get it right, we should split off something like BufferOutputParams. For example, the included_children_ data in the master's buffer is not really appropriate when exporting a child document. Probably it isn't used but it feels wrong. When scanning through output_latex.cpp, I see that - prepareEnvironment - TeXEnvironment - latexParagraphs all use buf.params(). Shouldn't these use masterBuffer().params() as well ? I'm not saying we should fix all this, but these things make me think. Vincent