Thanks Richard,

Works like a charm :-)

Daniel

Richard Heck wrote:
> Use the technique mentioned here:
> http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below.
>> 1) Define a variable \master in the preamble of the master document
>> before including the common preamble:
> Define it to mean something.
>> \def\master*{whatever}*
>> \input{preamble.tex}
>>
> Don't need any of this.
>> 2) Define a new \ifnomaster in the common preamble that tests for
>> \master being defined or not
>>
>> % common preamble, input'ed into all children and the master
>> \newif\ifnomaster
>> \ifx\master\undefined
>>   \nomastertrue
>> \else
>>   \nomasterfalse
>> \fi
>>
>> 3) Use ERT boxes to conditionally include the bibliography at the end
>> of each child:
>>
>> ??ERT[*\ifx\master\undefined*]
>> [BibTeX Generated Bibliography]
>> ERT[\fi]
> Richard
> 
> 
> 

Reply via email to