I came across this function in xparse
and have some questions about its usage:
The doc says it defines a robust function. So I guess if a function defined with
\NewDocumentCommand
calls an inner function, then the inner function doesn't have to be robust (if not otherwise required)? I mean we can use\cs_new:
instead of\cs_new_protected:
for the inner function?Is this command for document writers or package writers or both? Can we use it in the main text?
Will there be problems if we mix the use of
\NewDocumentCommand
and\newcommand
in a single document?