21 Jul
2007
21 Jul
'07
4:55 p.m.
On Sat, 21 Jul 2007, Sanjoy Mahajan wrote:
I had the same question and came to the following solution. The component files begin as follows:
\startcomponent extreme-cases \product book \project project
\startnotmode[*product] \environment env_book \stopnotmode ...
Here, env_book.tex is the product-specific environment file, which is called at the beginning of the product file book.tex. If only a component is being run, the \startnotmode[*product] will ensure that env_book is read in anyway.
I think that \startnotmode is not needed. \environment is smart enough to read the file only once. So, if the file has been read in the product, it will not be read again when the component is processed. Aditya