This question might be too general, but is something I thought about because I needed this in several different situations.
What I would like is to have a document of "problems" which I can solve. In general, this would be one page with a description of the problem, next the progress on the problem, some random thoughts and references.
Of course, I can just make a document with these sections and so on and so forth, but what if I decide say in a year that I actually want a different structure for my document? How I would do it is a save this as a file, say Super Cool Problem Bro.tex and then use in my main document \include{Super Cool Problem Bro.tex} in the page where I would like this.
So, maybe I have written all these files with my particular choices and I would like to do something simple like replace all the titles Literature with List of Relevant and Irrelevant Literature? This should be possible with some nice regex, but it does not feel like a good solution. What if I would like to add a section or switch the order?
So, I, naively, would make some kind of (flat file) database which has this data about my problems and then I would use a python script to generate my .texfiles from this according to my specifications. Right, but then I would be using python to generate the files and not LaTeX. Maybe there is some package or easy option which I am missing. It is also quite annoying to figure out after you are done there is a much easier option to go with. If you are doing research in mathematics this is quite common, but then the types of goals are different :-).
For the references at the bottom of each problem document I would be using chapterbib, which seems to be the right way to go (but of course, the stuff I describe above is what I am really wondering about).
Edit: Would "hacking" amsref be a good idea? They have bibliographies in the file itself which I could use as the "database". That could be remapped to an environment.
