defstring – Define macros as verbatim macros
The command \defstring defines its first argument (a control sequence name) as the content of its second argument, with category code ‘other’, with surrounding braces added.
Maybe you are interested in the following packages as well.
- default: Provide default parameters for TeX macros
- xoptarg: Expandable macros that take an optional argument
- xnewcommand: Define \global and \protected commands with \newcommand
- xtemplate: A high-level interface for declaring document commands