I am writing a document that has a set of "task lists" scattered throughout. I want to have a single list of all of the tasks at the end. It seems to me that I should be able to do this with the same sort of intermediate files that are used for the table of contents, list of tables, and list of figures. But I just can't figure out any way to do it --- I've tried adding \addtocontents with a different extension, but that doesn't seem to work. Does anybody have an idea of how to do this?