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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to