I have a long document with frequent uses on an environment that needs to be indexed on a per-section basis. I know that the
tocloft package allows creation of custom "list of..."s I also know that the
minitoc package allows per-part, per-chapter, or per-section tables of contents.
But I need a custom "list of" that occurs on a per-section basis, that is, both functionalities. I think I have an idea how to implement this: Each instance of the environment writes something to an aux file that is unique to the section, and at the beginning of that section the custom aux file is read, writing that list. But before I start hacking I'm wondering if this wheel has been invented before and I don't know of it.