How can I wrap a LaTeX command in an environment? In essence, how can I turn \\somecommand{contents} into \\begin{somecommand} contents \\end{somecommand}? I have tried the obvi
A Simpler way could be:
\newenvironment{somecommand}[0]{ \somecommand\bgroup } { \egroup }
Explanation: \bgroup works like { and \egroup works like }.
\bgroup
{
\egroup
}