Can someone with low-level LaTeX knowledge please help me create new customized commands? The commands should be named \storeitem and \typesetitems, and they should work like this:
\typesetitems
\storeitem{hello}
some other stuff
\typesetitems
\storeitem{world}
This is what the commands should do:
- On first run of LaTeX, the
\storeitemcommands should put their arguments into an auxiliary file, in this case "hello" and "world". - Each instance of
\typesetitems(which is assumed to occur the equal number of times as the\storeitemcommand - twice in the above example) should put all the stored items in a regular bulleted list (itemize) with a normal font, with the exception that the N-th occurrence of\typesetitemsshould typeset the N-th item in an italic font.
Thus, the results of the above commands would be something like:

A few other things that should be included if possible, for more friendliness and robustness:
If the number of occurrences of
\storeitemand\typesetitemsdon't match, produce a warning. (And do something graceful with the "overflowing" commands, which could be either of them.)If one edits the arguments of existing
\storeitems, adds new\storeitems, or deletes existing\storeitems, produce some kind of a "Labels changed, run again" warning message. (Similar to the one that LaTeX does by default when labels have changed.)Maybe later I may not want itemize. Maybe I want numbered lists. Or maybe I do not want lists at all. And maybe I want to do something other to the N-th item than italicize it. For these reasons, it should be rather straightforward to edit the custom commands to suit one's needs.

\typesetitems\storeitem{world}and worry about not having the commands in pairs rather then just having\storeandtypesetitem{world}which does both jobs. printing the whole list but italicising the current one. – David Carlisle Oct 6 '12 at 22:11