Working with templates
When we develop a document, we specify the document class, choose meaningful packages and options, and create a frame for the content. To repeat these steps for each document would be too laborious.
If we plan to write several documents of the same type, we may create a template. This could be a .tex
file containing the following:
- A declaration of a suitable document class together with a set of meaningful options
- Routinely used packages and packages that are most eligible for our document type
- A predefined layout for the header, footer, and body of the text
- Self-made macros to facilitate our work
- A framework of sectioning commands, where we fill in the headings and the body text
- Or a framework containing
\include
or\input
commands, for which we create the body text chunks later on
As we improve our LaTeX knowledge, such templates might grow and become better and more sophisticated. Many users publish their elaborate templates...