\documentclass[11pt]{scrartcl} % vim: tw=50 \usepackage{notesheader} { % \renewtheorem{customtheorem}{Theorem}[section] % \renewtheorem{customtheorem}[customlemma]{Theorem} } \begin{document} \newcommand\coursecode{QM} \title{Quantum Mechanics} \author{} \date{\today} \maketitle \tableofcontents \newpage \lecturelist \newpage \inputlectures \end{document}