Your code in the .sty is a little bit unconventional. In any case, the
most common in LaTeX is to use etoolbox package.

    \usepackage{etoolbox}
    \newenvironment{env}{whatever goes here}{whatever goes here}
    \AtBeginEnvironment{env}{<begin environment>}
    \AtEndEnvironment{env}{<end environment>}
    \BeforeBeginEnvironment{<before environment>}
    \AfterEndEnvironment{<after environment>}
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to