On 04/21/2011 03:37 PM, Rainer M Krug wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21/04/11 15:28, Mathieu Dubois wrote:
On 04/20/2011 11:25 PM, Julien Rioux wrote:
On 20/04/2011 4:00 PM, Mathieu Dubois wrote:
Hello (again),

I have another question.

I'm writing my PhD thesis (how many messages started like this one on
this list?). Of course I have planned to split the document into a
master document and child documents. I have set the master document
field of each child document.

However each chapter is rather long so I wanted to split chapters into
several files (one for each section). I have several questions.

First I have then to use "input" instead of "include", right?

Second, what is the master document of the section file? Is it the main
document or the chapter one? Would it be better include every section
into the main document?

Third, I have configured my main document for using hyperef and saved as
default. But then when compiling the document LyX complains about option
clashes in hyperef. Do I have to use hyperef only for the master?

Thanks in advance,
Mathieu

Hello,
1) \include starts the content on a new page, \input does not.
OK. So I can \include the chapter and \input the section.
2) I would try to set the master of section.lyx to chapter.lyx, I think.
That's what I did. The only problem I that I cannot compile the section
alone (I have to compile the chapter). Not a big deal.
3) Not all options are inherited between master and childs, you mostly
have to repeat the settings in both to avoid any problems. (you can do
it once for one of the child, then copy paste the heading of the .lyx
files in an standard text editor to save time.
Thanks for the trick.
Just something more: I used for the preamble in LyX a separate file
(preamble.tex) and included it in the preamble field of my documents
(child and master) as

\include{preamble.tex}

So I had to change the preamble only once, and it was always in all
documents. If you put \hyperref and the config for hyperref in this
document and disable the hyperref use in the LyX document options, yo
should have solved your problems as well.
Thanks also Rainer. Very useful.

Mathieu

Reply via email to