On Mon, Nov 17, 2014 at 3:44 PM, Bruce Momjian <br...@momjian.us> wrote:
> I know I can use Insert/File/Child Document to insert a LyX document
> into an existing LyX document.  Is there any way to _conditionally_
> include the document based on a TeX define, e.g.:
>
>         \ifx \employer \include{/presentations/employer/head_bumper} \fi
>
> but if you put this in a TeX red block, it doesn't work as \include must
> be processed by LyX.
>
> I would like to do this so I can define a TeX variable in my LaTeX
> preamble and have it control the addition of slides.

Would a branch do what you want?

Scott

Reply via email to