cm.template/content/chapters/include.tex

18 lines
357 B
TeX
Raw Permalink Normal View History

2023-08-26 11:48:50 +02:00
%----------------------------------------
% CHAPTERS
%----------------------------------------
\newcommand{\includechapters}[2]{%
\foreach \i in {0, ..., #2} {%
\edef\FileName{content/chapters/#1/\i}%
\IfFileExists{\FileName}{%
\input{\FileName}%
}
}
}
\includechapters{part1}{2}
% \includechapters{part2}{2}
% \includechapters{part3}{1}