\ifSubfilesClassLoaded{%
	\setcounter{tocdepth}{3}
	\frontmatter%
	\frontmatterfancy%
	\tableofcontents%
	\input{subfileprefixsmall}%
}{}%
