>> if I have master document with some child documents and I'm editing
>> the child and then invoke View->PDF(pdflatex) LyX tries to compile
>> only this child document and not the whole document beginning with
>> master. How can I change LyX behavior to always compile a whole
>> document regardless of what file is edited?
>>
>>
>
> I'll guess that you are opening the child directly, i.e., by itself. So LyX
> doesn't know that it's a child and compiles it on its own.
>
> Solution: Set the default master document under Document>Settings.
> Then, when you open the document, LyX will always also open the master
> as well and identify the child as its child. Then compiling will compile the
> whole thing.

Thank you for your quick reply. I've tried specifying the master
document, but it doesn't solve the problem I have. AFAIK the master
document feature only helps to properly compile child if master
document is not opened. The whole document won't be compiled. More
than that if you've defined some LaTeX macros like "newcommand" they
won't be taken, so child compilation fails. I'm using LyX 1.5.6

Any other ideas? Or should it be added as feature request?

Regards,
Yegor

Reply via email to