| 1 |
|
| 2 |
An alternative to \include's for large works consisting of |
| 3 |
several subdocuments. Still alpha. |
| 4 |
|
| 5 |
This is a tentative package aiming to provide a different approach |
| 6 |
for multidocument works (mainly, books with a document per chapter). |
| 7 |
Unlike the \include mechanism, every subdocument is a complete LaTeX |
| 8 |
document and can be typeset separately. What the package does is |
| 9 |
sharing the aux files. It's still an alpha version, and no attempt |
| 10 |
has been done yet to make it to work with, say, hyperref. |
| 11 |
|
| 12 |
This approach has the following advantages: |
| 13 |
1) Packages can be loaded just when a part requires them. |
| 14 |
2) Generated pdf/dvi/ps files are kept. |
| 15 |
|
| 16 |
You need a driver tex file containing a \subdocuments command |
| 17 |
listing the files. With an optional argument you can set |
| 18 |
its behaviour: |
| 19 |
|
| 20 |
\subdocuments[clear=double]{file1, file2, file3} |
| 21 |
|
| 22 |
The option clear=double adds an empty page at the end to give a even |
| 23 |
number of pages. clear=single doesn't and it's the default. Spaces |
| 24 |
and new lines before and after commas are ignored, as well as empty |
| 25 |
items. It relies on the keyval package, so names containing = must |
| 26 |
be given within braces. |
| 27 |
|
| 28 |
This file can be used as a shared preample, with common settings |
| 29 |
for all the documents. |
| 30 |
|
| 31 |
Documents must have the folowing line: |
| 32 |
|
| 33 |
\usepackage[master]{subdocs} |
| 34 |
|
| 35 |
where master is the name of the file described above. |
| 36 |
|
| 37 |
Since every subdocument reads all the aux files, \tableofcontents |
| 38 |
may be used where desired. |
| 39 |
|
| 40 |
License: MIT |
| 41 |
________ |
| 42 |
Javier Bezos --- http://www.texnia.com |
| 43 |
|
| 44 |
|