# [texhax] environment from command

Barbara Sánta santa.barbi at gmail.com
Fri Nov 19 21:56:28 CET 2010

Hi, an elementary question, but I couldn't find the answer: how could
I define an environment from a command such that an argument of it be
inside the environment.

Example:

given the next command:
\command{fix first argument}{variable second arg}{fix third arg}

Construct the next environment:
\begin{environment}
variable second arg
\end{environment}

Thanks,
Barbara