Here's one (sort of hackish but not too bad) way to work this:
All wrapped up, you just add a new command hiddensubsection
, given by
\newcommand{\hiddensubsection}[1]{
\stepcounter{subsection}
\subsection*{\arabic{chapter}.\arabic{section}.\arabic{subsection}\hspace{1em}{#1}}
}
Then you create your notoc subsection using this instead of \subsection
:
\hiddensubsection{sectionname}
The way it works is by manually incrementing the subsection counter and then creating an unnumbered subsection with the subsection counter as part of the title. You may need to tweak the spacing between number and title, but i couldn't see any difference.
Obviously you could do the same thing for sections and subsubsections if needed