ABSTRACT

This chapter discusses how to plan a large document’s file structure. It provides three methods for including child documents into parent documents. The first is very simple and uses the LaTeX command input. The second uses knitr to include knittable child documents. The final method is a special case of the knitr method that uses the command-line program Pandoc to convert child documents written in non-LaTeX markup languages and include them into a LaTeX parent. In LaTeX, a parent document will include the preamble where the document class is set and all of the necessary LaTeX packages are loaded. LaTeX’s own parent-child functions are very useful if the reader is creating plain, non-knittable documents. Like regular LaTeX parent documents, knittable parent documents include commands to create the preamble, front matter, and bibliography.