Hi all, it has been suggested on this list before, that people should use modes instead of \localenvironment and friends. Unfortunately, I don't seem to get either of them working as expected. Consider the following example: % project.tex \startproject project \environment environ \component compa \component compb \stopproject % environ.tex \startenvironment environ % global setups % ... \startmode[compa] \setuphead[section][number=no] \stopmode \stopenvironment % localenv.tex \startlocalenvironment [compa] \setuphead[section][number=no] \stoplocalenvironment % compa.tex \startcomponent compa %\enablemode[compa] \project project \localenvironment localenv \section{First section} Some text %\disablemode[compa] \stopcomponent % compb.tex \startcomponent compb \project project \section{Second section} More text \stopcomponent Compiling project.tex results in both sections being unnumbered. Compiling just compb.tex yields the expected result. Apparently, the setups of localenv stay in effect for all components processed subsequently. Commenting out \localenvironment and uncommenting \enablemode / \disablemode in compa.tex, however, does not solve the problem either: When I compile just compa.tex, everything works as expected. Compiling preject.tex, however, results in all sections being numbered. Obviously, the call to \enablemode comes too late. What is the recommended approach to such a problem? Do I have to undo local setups manually at the end of a component? Thanks in advance for any advice, Elias