7 Jul
2015
7 Jul
'15
4:37 p.m.
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>}