On 2009-03-24, Florin Oprina wrote:
> I use Lyx 1.6.2. I created a child document, selected a default master
> document and put all my custom commands in the preamble of the master file.
> In the master file I included the child document.
> Now, if I compile the child document the settings in the master file seem to
> be ignored: the custom commands do not work and bibliographic references are
> not resolved.
Compile the master. Compiling a buffer always uses the preamble and
settings from the local document (even if a default master is set). This
way it is still possible to define local settings for the child document.
(I have my common preamble in an external file and include it in the
master's and child's "Document>Settings LaTeX Preamble" with
\input{preamble.tex}.)
You can compile the master from the child document with the
master-buffer-view and master-buffer-update functions, e.g.
Esc-x % open minibuffer (command line)
master-buffer-view pdf2
You can also bind these functions to keys if you happen to need them
regularely.
Günter