I’ve recently created summaries for some master’s courses, where I’ve used subdocuments to, well, create the summary. The structure was as following:
main.typ // main file
preamble.typ // contains universal packages
sections/ // folder which contains all the sections/chapters
- section1.typ
- chapter1.typ
- etc.
The preamble.typ file is as mentioned to include necessary packages used across all files (for example meander). In each section file, I add the line
#import "../preamble.typ": *
to include those!
In main.typ I load templates, set document metadata and build the general structure of the document:
#import "preamble.typ": *
// some stuff here
#include "sections/section1.typ"
#include "sections/chapter1.typ"
// etc.
Note that #include inserts content where it is called. #import loads only functions, modules and variables (as read-only).