I do have a customized examples environment, now I need a table of content for it, I don't know how is that possible. Here is my environment
\newcounter{example}
\renewcommand{\theexample}{\thesection.\arabic{example}}
\usepackage{multicol}
\mdfdefinestyle{example}{%
linecolor=black,
outerlinewidth=1pt,
bottomline=true,
leftline=false,rightline=false,
skipabove=\baselineskip,
skipbelow=\baselineskip,
frametitle=\mbox{},
}
\newmdenv[%
style=example,
settings={\global\refstepcounter{example}},
frametitlefont={\bfseries Exemple~\theexample\quad},
]{example}
thanks.
tcolorboxinstead ofmdframed(which you're using, apparently), however. Perhaps it is possible with thestartcodeoption, i.e.startcode=\addcontentsline{exa}{section}{Title of the box}, but this might get tedious – Apr 11 '18 at 20:50tcolorbox: https://tex.stackexchange.com/questions/276345/how-can-i-create-a-custom-directory-like-table-of-contents-e-g-list-of-exampl – Apr 11 '18 at 21:03mdframed, but as long as you don't post a compilable document instead of fragments there will be not much help – Apr 15 '18 at 06:47