-----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.

Cheers,

Rainer
> 
> Thanks,
> Mathieu
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      [email protected]

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2wMv4ACgkQoYgNqgF2egpKBQCdHnY4xkqCydQRkgUpFdLhl824
2n0An2Qe+fExael7xNqHxefVsm0JVG3u
=aVhC
-----END PGP SIGNATURE-----

Reply via email to