2023-12-05 20:30:40 +01:00
|
|
|
%----------------------------------------
|
|
|
|
% CHAPTERS
|
|
|
|
%----------------------------------------
|
|
|
|
|
|
|
|
\newcommand{\includechapters}[2]{%
|
|
|
|
\foreach \i in {0, ..., #2} {%
|
|
|
|
\edef\FileName{content/chapters/#1/\i}%
|
|
|
|
\IfFileExists{\FileName}{%
|
2024-03-19 13:11:18 +01:00
|
|
|
\include{\FileName}%
|
2023-12-05 20:30:40 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-25 12:04:13 +01:00
|
|
|
\includechapters{part1}{4}
|
|
|
|
\includechapters{part2}{4}
|
2023-12-05 20:30:40 +01:00
|
|
|
|
2024-03-12 13:15:22 +01:00
|
|
|
% \includechapters{part3}{1}
|