Steven van Dijk wrote:
> 
> Hi,
> 
> I've got a master document which "includes" several other files. In the
> other files, a number of math-macros are used. I can produce my document by
> doing "include macros.lyx" in the master document before the other
> includes. If I try to preview a single chapter however, it complains it
> doesn't know the macros. I can fix this of course by including macros.lyx
> in the subdocument, but then I get a multiple inclusion error when I try to
> see the whole document.
> 
> In other words, I need something that checks a boolean which is only set by
> the master document. If it is set, it does not include macros.lyx,
> otherwise it does. Can anybody tell me how to do this? Preferably without
> ERT (by hiding it in a layout)?

this is latex, therefore ert
have a look at 
http://www.educat.hu-berlin.de/~voss/lyx/IfThen/ifthen.html

it's the same situation

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/


Reply via email to