In a report file, I have 5 chapters, the minitoc disappeared in just the first 3 of them after adding the list of axamples and the one for algorithms

%packages for algorithm
%packages for example environment
\NewDocumentEnvironment{example}{ O{} } {
      \newtcolorbox[use counter=example,list inside=qex]{examplebox}{%
      % Example Frame Start
      % Empty previously set parameters
      % use \thetcbcounter to access the example counter text
      title={Exemple \thetcbcounter : #1},
      % Attaching a box requires an overlay
      attach boxed title to top left,
      % (boxed title style requires an overlay)
      boxed title style={empty,size=minimal,toprule=0pt,top=4pt,overlay={}},
      coltitle=colexam,fonttitle=\bfseries, before=\par\medskip\noindent,parbox=false,boxsep=0pt,left=0pt,right=3mm,top=2pt,breakable,pad at break=0mm,
before upper=\csname @totalleftmargin\endcsname0pt, % Use instead of parbox=true. This ensures parskip is inherited by box.
% Handles box when it exists on one page only
overlay unbroken={\draw[colexam,line width=.5pt] ([xshift=-10pt]title.north west) -- ([xshift=-10pt]frame.south west); },
% Handles multipage box: first page
overlay first={\draw[colexam,line width=.5pt] ([xshift=-10pt]title.north west) -- ([xshift=-10pt]frame.south west); },
% Handles multipage box: middle page
overlay middle={\draw[colexam,line width=.5pt] ([xshift=-10pt]frame.north west) -- ([xshift=-10pt]frame.south west); },
% Handles multipage box: last page
overlay last={\draw[colexam,line width=.5pt] ([xshift=-10pt]frame.north west) -- ([xshift=-10pt]frame.south west); },%



\listoffigures \addcontentsline{toc}{chapter}{Table des Figures}\mtcaddchapter 

\listoftables \addcontentsline{toc}{chapter}{Liste des Tableaux}\mtcaddchapter 

%examples environment list
\tcblistof[\chapter*]{qex}{Liste des Exemples}
\addcontentsline{toc}{chapter}{Liste des Exemples}

%algorithms list
\addcontentsline{toc}{chapter}{Liste des Algorithmes}

\chapter{Les Courbes Elliptiques}


I do not have any error message but some warnings enter image description here

thanks for help.


1 Answer 1


Solution found by replacing the instruction \addcontentsline with \mtcaddchapter for all the lists

\tcblistof[\chapter*]{qex}{Liste des Exemples} \mtcaddchapter[Liste des Exemples]
\listofalgorithms \mtcaddchapter[Liste des Algorithmes]
  • See also section 1.3.4 in the minitoc manual. Commented May 12, 2018 at 18:00
  • thanks, in my case the example environment is not used as a chapter level, it is just for examples
    – Hind Dev
    Commented May 12, 2018 at 18:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .