So, I'm writing a study guide as a book class document, and at the end of each chapter I'd like to be able to print summaries/highlights. What I have in mind is to tag and then re-print tagged definitions, important theorems, examples and exercises in standalone sections of the document. If possible, I'd like to have the option of either collecting the entire environment (as in the case of definitions, where I'd like to include the framed format I currently have for them) or only the text (as would be the case for exercises that arise naturally from the content but would be included in an enumerated list).
After some searching I found the tagging and collect packages, and from reading the documentation it seems to me they could be tweaked to do what I have in mind but it's beyond my ability tom modify the example codes I've found. It's also possible that this functionality is included in a different package altogether, but I haven't hit the right keywords to find it yet, so I'm open to suggestions.
I suggest this method, since you don't just want environments, but also sometimes only a sentence or formula, which would cause a lot of formating problems.
– DonFangzahn May 27 '19 at 00:49