Code: Select all
\def\numberedsubsectionwithtwoarguments[#1]#2{%
\ifhmode\par\fi
\removelastskip
\vspace*{12pt}\goodbreak
\refstepcounter{subsection}%
\noindent
\leavevmode
\begingroup
\th@HdFnt\th@ScSz
\thesubsection
\th@SubSecFnt\th@ScSz
\;\
#2\quad
\endgroup\nopagebreak[4]
\addcontentsline{toc}{subsection}{\protect\numberline{\thesubsection.}#1}}