2022-12-31 19:36:49 +01:00
|
|
|
%----------------------------------------
|
|
|
|
% CHAPTERS
|
|
|
|
%----------------------------------------
|
|
|
|
|
|
|
|
\newcommand{\includechapters}[2]{%
|
2023-02-27 11:07:49 +01:00
|
|
|
\foreach \i in {0, ..., #2} {%
|
|
|
|
\edef\FileName{content/chapters/#1/\i}% The % here are necessary to eliminate any
|
|
|
|
\IfFileExists{\FileName}{% spurious spaces that may get inserted
|
|
|
|
\input{\FileName}% at these points
|
|
|
|
}
|
|
|
|
}
|
2022-12-31 19:36:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
\includechapters{part01}{2}
|
|
|
|
|
|
|
|
|
2023-01-03 08:42:54 +01:00
|
|
|
% \includechapters{part02}{2}
|