I turned my most used packages and macros and environments into a package (and defined options for some). There is one thing I could not figure out. Say I have this environment definition in my custom .sty file:
\newenvironment{myenvironment}
{\par\addvspace{3ex}%
\nopagebreak\noindent\hspace{0.5in}}
{\par\addvspace{3ex}%
\ignorespacesafterend}
Now, when I load the package, I'd like to have the ability to customize the options of this environment, such as (say):
\usepackage[myenvironment hspace=1in]{mydefaultpreamble}
How do I do that?