I am keeping something like a diary, that helps me keep track of things that I am working on. Occasionally there are some actions (To do's) that need to be taken, which I would like to keep on the first page of the document (or some other predefined area). Ideally this list of actions would be sorted inverse to the sequence in which they appear in the text.
How would one go about creating a command that would achieve this? Ideally, this command would be in the format like:
Some text blah blah blah
\mynewcommand{Finish reading the document}
Yet more text
\listoftodos? – samcarter_is_at_topanswers.xyz Sep 11 '23 at 12:58\inputat whatever place of the document you like. E.g., the\@starttoc/\addtocontents/\@writefile--mechanism of the LaTeX 2e-kernel which underlies\tableofcontents,\listoffigures,\listoftablesetc etc. Actually things to be listed separately can be considered records of a database. ... – Ulrich Diez Sep 11 '23 at 19:03