LyXCan I divide a document in multiple .lyx (1 per chapter)?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
mallo
Posts: 5
Joined: Sat Jun 12, 2010 4:52 pm

Can I divide a document in multiple .lyx (1 per chapter)?

Post by mallo »

Hello everybody.
This question could appear quite stupid but I can't find an answer on the web.

I used latex for writing many documents including my master's thesis. Typically, in those cases, I use a sort of main.tex and divide the content in different .tex files, one per chapter. All the files shares the same bibliography and once compiled they described a single .ps, .pdf document.

I would like to know if it is possible to do the same in lyx, i.e., keeping separate all the chapter and use a sort of master document for the preamble and configuration.

If it is not possible, I would like to know if I will have problems (in term of computational resources and application stability) to write a single document of more than 100-150 pages, which uses images, labels and bibliography.


Thanks a lot for the answers,

Mauro

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Re: Can I divide a document in multiple .lyx (1 per chapter)

Post by torbjorn t. »

As far as I understand, yes. You can insert lyx files with Insert --> File --> Child document. You can also specify for each child document the master document, under Document --> Settings --> Document class.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Can I divide a document in multiple .lyx (1 per chapter)?

Post by meho_r »

Yes, it is possible. All you have to do is to import all your separate .tex documents into separate .lyx files, save them, and then in .lyx file which serves as a master use Include file button or from menu: Insert > File > Child Document to include Child files into it (this may even be done automatically during importing .tex files into LyX). For more infos about Master and Child documents, you may want to check out LyX's Embedded Objects manual, Section 6.2.

EDIT: Well, torbjorn t. was a faster ninja than me :)
mallo
Posts: 5
Joined: Sat Jun 12, 2010 4:52 pm

Re: Can I divide a document in multiple .lyx (1 per chapter)

Post by mallo »

Thank you very much ^_^.
I will give a try and let you know if it works seamlessly.
Post Reply