\documentclass[9pt,openany]{memoir}

%%% Input parts
\input{parts/1-packages}
\input{parts/2-memoir}
\input{parts/3-variables}
\input{parts/4-commands}

%%% Get it started
\checkandfixthelayout % Required if you have altered settings for the memoir class
% Make an index
\makeindex[title=Commands, intoc, columnseprule]
\makeindex[name=concepts, title=Concepts, intoc, columnseprule]
\begin{document}

\pagenumbering{roman}

%%% Input titlepage and impressum here
\input{chapters/1-titlepage}
\input{chapters/2-impressum}

%%% TOC
\pagestyle{empty}
\tableofcontents
%\clearpage % Delete if TOC runs to 2n+1 pages

\iffalse % Comment out the list of figures
\pagestyle{empty}
\listoffigures
\clearpage
\fi


%%% Begin Contents
\setcounter{page}{1}
\pagenumbering{arabic}
\pagestyle{kpage}
\chapterstyle{kchap}

% Chapter 0 is the introduction
\setcounter{chapter}{-1}

%%% Input chapters here
\input{chapters/ch00-intro}
\input{chapters/ch01-images}
\input{chapters/ch02-text}
\input{chapters/ch03-files}
\input{chapters/ch04-system}

\printindex
\printindex[concepts]

\end{document}