Section 6.3 Coding modularly using
From : “The
xincludemechanism ... is of some use for organizing your work, so you do not have mammoth files open in your editor.” By using this mechanism you can put portions of your document in separate PTX files and then “include” them in your main file. For instance, if your book has five chapters, you may want to write each chapter in a separate PTX file.
If you wish to, for instance, include the chapter in the file
algebra.ptxin your main file,
algebra.ptxin the same directory as
index.ptx, and insert the following code in
index.ptxwhere you want the chapter to appear:
<xi:include href="algebra.ptx" />. You can see examples of this technique being used in
For more details, see the section on Modular Source Files 1 in .