machine-learning/content/chapters/include.tex

18 lines
352 B
TeX
Executable File

%----------------------------------------
% CHAPTERS
%----------------------------------------
\newcommand{\includechapters}[2]{%
\foreach \i in {0, ..., #2} {%
\edef\FileName{content/chapters/#1/\i}%
\IfFileExists{\FileName}{%
\input{\FileName}%
}
}
}
\includechapters{}{2}
% \includechapters{part2}{2}
% \includechapters{part3}{1}