The idea with modules is to not define localities. There is already a structure in LaTeX for creating localities, name the environments. In fact, a convenient way to implement environments is by creating a module called "environment", which defines the behavior of environments, including how to define new environments. In fact, one can go one step further and create a module "Environment" which is used to create different styles of environments (say if you want to change that \begin{foo} ... \end{foo} to something else, or perhaps create environments for HTML code, or something). I have put up a link on my home page to the LaTeX/TeX code I once made while exploring these ideas. It is just a copy of what I happened to have in my home directory, so it's a mess. But the stuff is at least available for exploration. Hans Aberg * Email: Hans Aberg <mailto:[log in to unmask]> * Home Page: <http://www.matematik.su.se/~haberg/> * AMS member listing: <http://www.ams.org/cml/>