Iterating Macros
This topic contains packages to repeat TeX material.
Iteration in LaTeX.
\newcommand-like commands for defining math macros.
Build tools to process tokens from an input stream.
Iterate over a token list expandably, without dropping spaces or braced groups.