# Generate list of custom environment defined with tcolorbox

I have an example environment which I got from another topic:

\newtcolorbox[auto counter]{texample}[1][]{
breakable,
boxsep=0pt,
leftrule=4pt,
rightrule=0pt,
toprule=0pt,
bottomrule=0pt,
top=0pt,
bottom=0pt,
before skip=\topsep,
after skip=\topsep,
arc=0pt,
outer arc=0pt,
colback=white,
colframe=gray!40,
oversize,
title={Example~\thetcbcounter},
fonttitle=\normalfont\bfseries,
coltitle=black,
fontupper=\itshape,
detach title,before upper={\tcbtitle\hspace{0.5em}}
}


Then I use this with:

\begin{texample}
....
\end{texample}


I want to generate a list of examples, just like there is a list of figures, tables, etc... Can this be done?

• Check tcolorbox user manual (for v5.1.1), sec. 5.2 "Lists of tcolorboxes". Aug 7 at 1:59