Debian Codegraph @

texmf-dist/doc/latex/expkv-bundle/preamble-examples.tex

raw
1 \makeatletter
2 \newcounter{example}[section]
3 \newcommand*\example[1]
4 {%
5 \par\smallskip
6 \refstepcounter{example}%
7 \addcontentsline{exs}{example}{#1}%
8 \noindent\textit{Example:} \ignorespaces
9 }
10 \newcommand*\l@example{\@dottedtocline{0}{1.5em}{2.3em}}
11 \newcommand\listofexamples
12 {%
13 \addsec{List of Examples}%
14 \@starttoc{exs}%
15 }
16 \makeatother