I have defined a custom script environment, and would like to include an index in the output listing all scripts with their titles. How can I create such an index?
The custom environment looks like:
\newcounter{script}
\def\thescript{\thechapter-\arabic{script}}
\newenvironment{script}[2][]{
\colorbox{orange}
{\refstepcounter{script}\textbf{Script~\thescript #1: #2}}\nobreak}
{}
figureortable? – Thorsten Donig Oct 08 '10 at 10:06