For most purposes, the features of \newcommand suffice. Nonetheless, \newcommand lacks some interesting features like the ability to make definition global or to use the \protected prefix supplied by e-TEX. This--surprisingly small--package makes possible to pass an optional argument \newcommand so that is becomes possible to use the \global and \protected prefixes. This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that license.
Download the complete contents of this directory in one zip archive (260.6k).
xnewcommand – Define \global and \protected commands with \newcommand
The package provides the means of defining \global and (e-TeX) \protected commands, within the framework of LaTeX's standard \newcommand.
|License||The LaTeX Project Public License|
|Contained in||TeXLive as xnewcommand|
|MiKTeX as xnewcommand|
alternative ways of defining macros|