default – Provide default parameters for TeX macros
The command \setdefault defines default values for the arguments of an existing macro; the macro, thus adjusted, is called with square brackets around arguments which are overriding the default. (This is the same scheme as is used in LaTeX.)
Maybe you are interested in the following packages as well.
- balancedquotes: Code balanced quotes according to document language
- tokcycle: The tokcycle package helps one to build tools to process tokens from an input stream, on a token-by-token basis
- xnewcommand: Define \global and \protected commands with \newcommand
- letltxmacro: Let assignment for LaTeX macros