\documentclass{scrartcl} \setcounter{secnumdepth}{2} \begin{document} This test document is created to test advanced TOC functionality. \section{Test section 1} \subsection{Test sub section 1} \section{$\alpha$} \input{sec2.tex} \input{sec3} \end{document}