# Can a \newcommand Definition Contain Braces as Substitution Text?

The following example is completely counter-intuitive, but I need this in a bigger definition I'm not including here.

``````\newcommand{\openbrace}{{}
``````

I need this to start a nested scope.

Is this possible in LaTeX? I'm getting an error because the TeX engine is viewing this as unbalanced number of braces.

• I edited the question. I need to begin a new scope. – Chatterjee Jun 18 '13 at 19:05
• Does the second option I mentioned above work for you in that case? Actually, just `\begingroup` might be easier.. – Scott H. Jun 18 '13 at 19:07
• Yup. Can you please change it to an answer? Thanks a lot! – Chatterjee Jun 18 '13 at 19:08

``````\newcommand{\openbrace}{\begingroup}
``````\begingroup
To close the group, the corresponding macro is `\endgroup`