sequence-algorithms/content/chapters/include.tex

18 lines
357 B
TeX
Raw Permalink Normal View History

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}{%
\include{\FileName}%
2023-12-05 20:30:40 +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}