Re: Detect if document is part of a master file

2013-09-07 Thread Jürgen Spitzmüller
Marx Gomes van der Linden wrote: My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to omit them automatically if they are part of the master document (which will have a single bibliography at the end of

Re: Detect if document is part of a master file

2013-09-07 Thread Richard Heck
On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote: Marx Gomes van der Linden wrote: My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to omit them automatically if they are part of the master document (which

Re: Detect if document is part of a master file

2013-09-07 Thread Marx Gomes van der Linden
Thanks, both solutions worked for me, exactly as I needed. I didn't know anything about branches in lyx, looks really useful. For the ERT approach, I had to look up the syntax for \ifx to make it work, this is what did the trick: [ERT] \ifx\iamthemaster\undefined [/ERT] ...put

Re: Detect if document is part of a master file

2013-09-07 Thread Jürgen Spitzmüller
Marx Gomes van der Linden wrote: My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to omit them automatically if they are part of the master document (which will have a single bibliography at the end of

Re: Detect if document is part of a master file

2013-09-07 Thread Richard Heck
On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote: Marx Gomes van der Linden wrote: My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to omit them automatically if they are part of the master document (which

Re: Detect if document is part of a master file

2013-09-07 Thread Marx Gomes van der Linden
Thanks, both solutions worked for me, exactly as I needed. I didn't know anything about branches in lyx, looks really useful. For the ERT approach, I had to look up the syntax for \ifx to make it work, this is what did the trick: [ERT] \ifx\iamthemaster\undefined [/ERT] ...put

Re: Detect if document is part of a master file

2013-09-07 Thread Jürgen Spitzmüller
Marx Gomes van der Linden wrote: > My question is: is there any way to include the references at the end > of each chapter when they are compiled as stand-alone documents, but > to omit them automatically if they are part of the master document > (which will have a single bibliography at the end

Re: Detect if document is part of a master file

2013-09-07 Thread Richard Heck
On 09/07/2013 04:52 AM, Jürgen Spitzmüller wrote: Marx Gomes van der Linden wrote: My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to omit them automatically if they are part of the master document (which

Re: Detect if document is part of a master file

2013-09-07 Thread Marx Gomes van der Linden
Thanks, both solutions worked for me, exactly as I needed. I didn't know anything about branches in lyx, looks really useful. For the ERT approach, I had to look up the syntax for \ifx to make it work, this is what did the trick: [ERT] \ifx\iamthemaster\undefined [/ERT] ...put

Detect if document is part of a master file

2013-09-06 Thread Marx Gomes van der Linden
Hello, I am currently writing a long document in Lyx. I use separate files for each chapter, which are joined together as child documents in a master file. My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to

Detect if document is part of a master file

2013-09-06 Thread Marx Gomes van der Linden
Hello, I am currently writing a long document in Lyx. I use separate files for each chapter, which are joined together as child documents in a master file. My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to

Detect if document is part of a master file

2013-09-06 Thread Marx Gomes van der Linden
Hello, I am currently writing a long document in Lyx. I use separate files for each chapter, which are joined together as child documents in a master file. My question is: is there any way to include the references at the end of each chapter when they are compiled as stand-alone documents, but to