I once defined a customized latex command, which works well. And now I would like to convert it into a latex environment using \newenvironment command.
However, I failed after trying several ways.
Could you help me, please?

Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
–
JubobsApr 12 '14 at 10:31

1

I'm not sure you can split a node like that. It seems you only want to draw a frame around the minipage... have you considered using the mdframed package instead?
–
JubobsApr 12 '14 at 10:35

Why do you want to convert it into an environment? Is there some 'begin code' and 'end code'? Which content is to come before or after the box? And did you have a look on \tcolorbox package, e.g.?
–
SoundsOfSilenceApr 12 '14 at 10:37