gibt es eigentlich eine Möglichkeit zu erkennen ob ein Kapitel keinen Inhalt hat ?
Also zum Beispiel:
\section{Section2}
\subsection{Section2.1}
\section{Section2}
Ich bin ein toller Inhalt
\subsection{Section2.1}
Ich bin auch ein toller Inhalt
\section{Section2}
\subsection{Section2.1}
\section{Section2}
Ich bin ein toller Inhalt
\subsection{Section2.1}
Ich bin auch ein toller Inhalt
\def\@startsection#1#2#3#4#5#6{%
  \if@noskipsec \leavevmode \fi
  \par
  \@tempskipa #4\relax
  \@afterindenttrue
  \ifdim \@tempskipa <\z@
    \@tempskipa -\@tempskipa \@afterindentfalse
  \fi
  \if@nobreak
    \everypar{}%
  \else
    \addpenalty\@secpenalty\addvspace\@tempskipa
  \fi
  \@ifstar
    {\@ssect{#3}{#4}{#5}{#6}}%
    {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
\@tempskipa 9mm\relax \addpenalty\@secpenalty\addvspace\@tempskipa
\if@nobreak