Re: Conditionally including another LyX document

2014-11-18 Thread Wolfgang Engelmann
ot, of course, but this discussion with the many possibilities to solve something reminds me of this story: Free vs. Pedantic Thinking Some time ago I received a call from a colleague who asked if I would be the referee on the grading of an examination question. He was about to give a student

Re: Conditionally including another LyX document

2014-11-17 Thread Bruce Momjian
On Mon, Nov 17, 2014 at 05:39:38PM -0500, Richard Heck wrote: > On 11/17/2014 04:57 PM, Bruce Momjian wrote: > >On Mon, Nov 17, 2014 at 04:41:37PM -0500, Scott Kostyshak wrote: > >>On Mon, Nov 17, 2014 at 3:44 PM, Bruce Momjian wrote: > >>>I know I can use Insert/File/Child Document to insert a Ly

Re: Conditionally including another LyX document

2014-11-17 Thread Scott Kostyshak
On Mon, Nov 17, 2014 at 5:39 PM, Richard Heck wrote: > On 11/17/2014 04:57 PM, Bruce Momjian wrote: > Second, it is possible to use LyX layout to modify how branches are output. > E.g., you could do this in local layout: > > Format 41 > InsetLayout Branch:IfEmployer > LatexType Command > LatexNam

Re: Conditionally including another LyX document

2014-11-17 Thread Richard Heck
On 11/17/2014 04:57 PM, Bruce Momjian wrote: On Mon, Nov 17, 2014 at 04:41:37PM -0500, Scott Kostyshak wrote: On Mon, Nov 17, 2014 at 3:44 PM, Bruce Momjian 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 _conditio

Re: Conditionally including another LyX document

2014-11-17 Thread Bruce Momjian
On Mon, Nov 17, 2014 at 04:41:37PM -0500, Scott Kostyshak wrote: > On Mon, Nov 17, 2014 at 3:44 PM, Bruce Momjian 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 o

Re: Conditionally including another LyX document

2014-11-17 Thread Scott Kostyshak
On Mon, Nov 17, 2014 at 3:44 PM, Bruce Momjian 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/

Conditionally including another LyX document

2014-11-17 Thread Bruce Momjian
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 bloc