The xparse
documentation gives examples of names of \NewDocumentCommand
s enclosed in braces
, and without braces
, as demonstrated in the two commands below. Is there any difference in functionality whatsoever between the two? I never use braces and better be safe than sorry.
\documentclass{article}
%=======================
\usepackage{xparse}
%-----------------------
\ExplSyntaxOn
\NewDocumentCommand\myExp{m}{#1}
\NewDocumentCommand{\myExpAlt}{m}{#1}
\ExplSyntaxOff
%-----------------------
\begin{document}
\myExp{101}
\myExpAlt{123}
\end{document}
\ExplSyntaxOn
...\ExplSyntaxOff
.\usepackage[...]{expl3}
and I failed to remove them.