I want to use the closing bracket in a \newcommand
definition. I can give more explanation as to why, but this seems unnecessary at the moment. Obviously the MWE does not work, but how to make this work?
MWE
\documentclass{minimal}
\newcommand{\test}{somecommand}}
\begin{document}
Hi
\end{document}
which gives the error
! Too many }'s.
}
?\begingroup
and\endgroup
?