1

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.

Thanks in advance.

1

A solution is to add

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

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}%
\addtocontents{toc}{\protect\contentsline {chapter}{\vskip -2.8em \@plus-\p@}{}{}}
\adjustmtc\minitoc%
   }%
   {%
    \global\let\@chapapp=\@chapapp@old
    \global\let\thechapter=\thechapter@old}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.