Charlls Quarra wrote:
--- Jean-Pierre Chretien
<[EMAIL PROTECTED]> escribi�: >
Split your doc in chapters, test your transparencies each in turn. If a subpart works alone, it will work as a whole.
In contrast to LaTeX and the \includeonly facility,
LyX offers a simple
mechanism for chapter compilation:
- define a documnet model
- build each part alone with it
- define a master document with the same model and
include (as LyX)
the chapters: LyX will ignore the preambles of the
chapters.
The only remaining problem is with the
cross-references: you may
insert them in ERT to remind you to set them in the
last integration step.
(AFAR, tehre are hints abou this in the doc).
um... just a general question; its normal (ie: usual) to a Lyx user to know how to define a document model, or to split a doc in chapters�?
Yes. I belive "defining a document model" in this case simply means to set the correct document class, i.e. "book" or "article" or whatever the user wants. All the parts of a multi-file documents should be of the same class or there'll be unexpected trouble. This is done with the layoyt->document menu.
Splitting an existing document into chapter files
is easy enough to do using only normal editing:
1. Open the existing document in lyx, and create
one empty file with the same document class for each chapter.
2. For each chapter:
a. Mark the entire chapter in the existing document
b. cut it from the existing document
c. paste it into one of those empty chapter files and save it
d. In the existing document, insert->include file where the
chaper used to be, use "input" and specify the name of the
chapter file you just created.
3. The old document is now a master document that includes
a bunch of chapter documents. You may output it all by outputting
the master document, or output a single chapter by outputting that
file only.Working with single chapter eases debugging somewhat. It also have some other advantages:
* outputting a single chapter is faster than the entire document, so testing of formatting by view->dvi / view->pdf is much faster. * several persons (coauthors, proofreaders, editors, . . .) can work on separate chapters simultaneously. That doesn't work with a single-file document. * Less wear on the scroll bar in lyx. :-)
Any cocument construct that works in the single-doc case should work in the multi-doc case too. Note that you need to have both files open simultaneosly if you want to cross-reference from one to the other. You obviously need to output the entire document when checking stuff like the TOC, the index, cross-references between chapters, or actual page numbers.
Helge Hafting
