# Make parallel sectioning compatible with minitoc

I use the new environment SoftwareBreak, created at Creating independently-numbered Chapter-level structures.

Would you know how to make minitoc compatible with it ? One could tell minitoc to consider \begin{SoftwareBreak} as the beginning of a new chapter, but I don't know how to do that.

\addtocontents{toc}{\protect\contentsline {chapter}{\vskip -2.8em \@plus-\p@}{}{}}


to SoftwareBreak's definition. So it becomes

\newenvironment{SoftwareBreak}[2][\SB@temp]
{\gdef\SB@temp{#2}%
\global\let\@chapapp@old=\@chapapp
\global\let\thechapter@old=\thechapter
\gdef\@chapapp{\SWbreakname}
\gdef\thechapter{\theSWbreak}%
\SB@chapt{#1}{#2}%