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
-- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto